Skip to main content

Array Validator

A validator specifying constraints on an array node.

This schema type is marked as unstable ⚠️ and is subject to change.

Properties#

Name@idTypeDescriptionInherited from
containsstencila:containsValidatorTypesAn array node is valid if at least one of its items is valid against the `contains` schema.ArrayValidator
idschema:idstringThe identifier for this item.Entity
itemsValidatorstencila:itemsValidatorValidatorTypesAnother validator node specifying the constraints on all items in the array.ArrayValidator
maxItemsstencila:maxItemsnumberAn array node is valid if its size is less than, or equal to, this value.ArrayValidator
metastencila:metaobjectMetadata associated with this item.Entity
minItemsstencila:minItemsnumberAn array node is valid if its size is greater than, or equal to, this value.ArrayValidator
uniqueItemsstencila:uniqueItemsbooleanA flag to indicate that each value in the array should be unique.ArrayValidator

Related#

Available as#

Source#

This documentation was generated from ArrayValidator.schema.yaml.