Documentation
¶
Overview ¶
Package validator implements an input plugin that derives a CUE IR from go-playground/validator struct tags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constraint ¶
Constraint is a single validator keyword with an optional parameter, e.g. "gte=0" or "required".
type Tag ¶
type Tag struct {
Terms []*Term `@@ ( Comma @@ )*`
}
Tag is a parsed go-playground/validator struct tag: comma-separated terms, each a pipe-separated list of OR alternatives.
type Term ¶
type Term struct {
Alts []*Constraint `@@ ( Or @@ )*`
}
Term is one comma-separated term and its OR alternatives.
Click to show internal directories.
Click to hide internal directories.