Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAndParse ¶
ValidateAndParse is the only exported function. It accepts raw document bytes (YAML or JSON), a JSON Schema (bytes), and a docType tag (reserved for future behavior). It returns the parsed markup as map[string]any when the JSON Schema validates.
Types ¶
type FileValidator ¶
type FileValidator interface {
ValidateAndParseFile(docPath string, schemaPath string) (map[string]any, error)
}
func NewFileValidator ¶
func NewFileValidator(rootSchemaDir string) FileValidator
Click to show internal directories.
Click to hide internal directories.