package
0.0.0-20240605110052-2016107581da
Repository: https://github.com/grafana/thema.git
Documentation: pkg.go.dev

# Constants

ExcessField indicates a validation failure in which the schema is treated as closed, and the data contains a field not specified in the schema.
KindConflict indicates a validation failure in which the schema and data values are of differing, conflicting kinds - the schema value does not subsume the data value.
MissingField indicates a validation failure in which the data lacks a field that is required in the schema.
OutOfBounds indicates a validation failure in which the data and schema have the same (or subsuming) kinds, but the data is out of schema-defined bounds.

# Variables

ErrDuplicateLenses indicates that a lens was defined declaratively in CUE, but the same lens was also provided as a Go function to BindLineage.
ErrErroneousLenses indicates that a lens was provided to BindLineage in either CUE or Go that was not one of the expected lenses determined by the set of schemas in the lineage.
ErrInvalidData is the general error that indicates some data failed validation against a Thema schema.
ErrInvalidExcessField indicates a validation failure in which the schema is treated as closed, and the data contains a field not specified in the schema.
ErrInvalidKindConflict indicates a validation failure in which the schema and data values are of differing, conflicting kinds - the schema value does not subsume the data value.
ErrInvalidLens indicates that a lens is not correctly written.
ErrInvalidLensesOrder indicates that lenses are in the wrong order - they must be sorted by `to`, then `from`.
ErrInvalidLineage indicates that a provided lineage does not fulfill one or more of the Thema invariants.
ErrInvalidMissingField indicates a validation failure in which the data lacks a field that is required in the schema.
ErrInvalidOutOfBounds indicates a validation failure in which the data and schema have the same (or subsuming) kinds, but the data is out of schema-defined bounds.
ErrInvalidSchemasOrder indicates that schemas in a lineage are not ordered by version.
ErrLensIncomplete indicates that translating some valid data through a lens produced a non-concrete result.
ErrLensResultIsInvalidData indicates that translating some valid data through a lens produced a result that was not an instance of the target schema.
ErrMalformedSyntacticVersion indicates a string input of a syntactic version was malformed.
ErrMissingLenses indicates that the lenses provided to BindLineage in either CUE or Go were missing at least one of the expected lenses determined by the set of schemas in the lineage.
ErrValueNotALineage indicates that a provided CUE value is not a lineage.
ErrValueNotExist indicates that a necessary CUE value did not exist.
ErrNoSchemaWithVersion.

# Structs

ValidationError is a subtype of.

# Type aliases

ValidationCode represents different classes of validation errors that may occur vs.