Home

validate.AnyRules

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.AnyRules
.withIn([ 'string' ])
.withNotIn([ 'string' ])
.withRequired(false)
._validate()

Fields

Name Type One-of group Required Constraints
in [] string  
not_in [] string  
required bool