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.
func ValidateAndParseFile ¶
ValidateAndParseFile loads a document and its schema from the local filesystem, rewrites external $ref values to absolute file:// URLs, and delegates to ValidateAndParse().
Example:
parsed, err := docval.ValidateAndParseFile("fragment.yaml", "fragmented-resources.schema.json", "fragment")
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.