Home

validate.MapRules

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.MapRules
.withIgnoreEmpty(false)
.withKeys(types.validate.FieldRules)
.withMaxPairs(1)
.withMinPairs(1)
.withNoSparse(false)
.withValues(types.validate.FieldRules)
._validate()

Fields

Name Type One-of group Required Constraints
ignore_empty bool  
keys validate.FieldRules  
max_pairs uint64  
min_pairs uint64  
no_sparse bool  
values validate.FieldRules