Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidFileTypes ¶
func ValidFileTypes() []string
ValidFileTypes returns the list of accepted --type values.
Types ¶
type FileType ¶
type FileType string
FileType identifies which schema to validate against.
func DetectFileType ¶
DetectFileType infers the schema type from the file's name.
type Result ¶
Result holds the outcome of a validation.
func ValidateBytes ¶
ValidateBytes validates raw YAML content against the schema for the given file type.
Click to show internal directories.
Click to hide internal directories.