local types = import 'types.libsonnet'; types.validate.EnumRules .withConst(1) .withDefinedOnly(false) .withIn([ 1 ]) .withNotIn([ 1 ]) ._validate()
Name | Type | One-of group | Required | Constraints |
---|---|---|---|---|
const | int32 |
|
||
defined_only | bool |
|
||
in | [] int32 |
|
||
not_in | [] int32 |
|