Documentation
¶
Overview ¶
Package mdocinfo reads the descriptive fields of an mdoc data schema (the JSON Schema documents found in data-schemas/mdoc/ of rulebook catalogs).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
// Title is the schema's top-level "title".
Title string
// Description is the schema's top-level "description".
Description string
// DocType is the mdoc document type. It is read from a top-level
// "docType" string, from "properties.docType.const", or from the first
// "docType" property that declares a "const" anywhere in the document
// (WE BUILD schemas nest it under "$defs"/"oneOf" branches). Empty when
// the file declares none.
DocType string
}
Info holds the descriptive fields of an mdoc data schema.