validate.Fixed32Rules
Example
Disclaimer: The example is meant to show what methods are available on the object and does not necessarily constitute working
code.
local types = import 'types.libsonnet';
types.validate.Fixed32Rules
.withConst(1)
.withGt(1)
.withGte(1)
.withIgnoreEmpty(false)
.withIn([ 1 ])
.withLt(1)
.withLte(1)
.withNotIn([ 1 ])
._validate()
Fields
| Name |
Type |
One-of group |
Required |
Constraints |
| const |
fixed32
|
|
|
|
| gt |
fixed32
|
|
|
|
| gte |
fixed32
|
|
|
|
| ignore_empty |
bool
|
|
|
|
| in |
[]
fixed32
|
|
|
|
| lt |
fixed32
|
|
|
|
| lte |
fixed32
|
|
|
|
| not_in |
[]
fixed32
|
|
|
|