validator
sqllocks_spindle.packs.validator
¶
Validate a ScenarioPack against a domain's schema.
Classes¶
PackValidationResult
dataclass
¶
Result of validating a scenario pack against a domain.
PackValidator
¶
Validate a ScenarioPack against a domain's schema.
Checks that entities referenced in the pack exist in the domain, event types are plausible, and paths are well-formed.
Methods:¶
validate(pack, domain)
¶
Validate a pack against the given domain instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pack
|
ScenarioPack
|
The scenario pack to validate. |
required |
domain
|
Any
|
A Domain instance (e.g., RetailDomain()) whose schema provides the ground truth for entity/table names. |
required |
Returns:
| Type | Description |
|---|---|
PackValidationResult
|
PackValidationResult with errors and warnings. |