Documentation
¶
Overview ¶
Package inforules holds the spec's Info, Contact and License Object rules, shared by the validator and the builder so the two cannot disagree.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object string
Object is the spec section anchor of the object a Problem is about.
type Problem ¶
type Problem struct {
// Path is the full path of the offending field, e.g. "info.license.name".
Path string
// Field is the field's own name, e.g. "name".
Field string
// Object is the specification object that defines the field.
Object Object
// Value is the offending value, or "" when the problem is a missing field.
Value string
// Message describes the problem without naming the path.
Message string
}
Problem is one broken rule.