Documentation
¶
Overview ¶
Package config checks a costroid.yml against the published schema.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Problem ¶
type Problem struct {
// Path is where, as a JSON pointer. Empty means the document.
Path string
Message string
}
Problem is one place a file breaks the schema.
func Validate ¶
Validate checks a file's bytes. An empty document is a valid file: every key is optional. A file that is empty, ~, null or only --- reads as absent, and a section with no value reads as that section absent, as the report reads them. The error is for what could not be read; a file that was read and breaks the schema answers Problems.