v0.13.12
Added the ability to locate where a reference comes from
A new method GetReferenceOrigin()
exists on SchemaProxy
that returns *index.NodeOrigin
type NodeOrigin struct {
// Node is the node in question
Node *yaml.Node
// Line is yhe original line of where the node was found in the original file
Line int
// Column is the original column of where the node was found in the original file
Column int
// AbsoluteLocation is the absolute path to the reference was extracted from.
// This can either be an absolute path to a file, or a URL.
AbsoluteLocation string
// Index is the index that contains the node that was located in.
Index *SpecIndex
}
Also a new switch method features on the renderer.SchemaRenderer
struct called DisableRequiredCheck()
This will render all properties, regardless of the 'required` property values.
This release also tunes behavior of the local file system implementation used by the rolodex,