Documentation
¶
Overview ¶
Package validation performs structural, format, and semantic validation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SchemaIssue ¶
type SemanticIssue ¶
type SemanticIssue struct {
Layer string `json:"layer"`
Code string `json:"code"`
Pointer string `json:"pointer"`
Message string `json:"message"`
}
func ValidateSemantics ¶
ValidateSemantics runs cross-field checks after structural validation. artifacts is rooted at the ledger's artifact directory. A nil filesystem intentionally skips artifact-byte checks for model-only prospective validation and stdin inspection; path-backed validation must pass the confined ledger-relative filesystem so missing or changed artifacts fail.
type StructuralValidator ¶
type StructuralValidator struct {
// contains filtered or unexported fields
}
func DefaultStructuralValidator ¶
func DefaultStructuralValidator() (*StructuralValidator, error)
func (*StructuralValidator) Validate ¶
func (v *StructuralValidator) Validate(document any) ([]SchemaIssue, error)
Click to show internal directories.
Click to hide internal directories.