Home

Array Validator

This is a type used in Stencila Schema for validating Array nodes.

It adapts ideas from JSON Schema array validation to Stencila's node-based data model, allowing constraints to be expressed over arrays of primitive values and other node types. This makes it suitable for document parameters, forms, and structured data checks.

Key properties describe item validators, tuple-like validation, and size constraints.

Properties

The ArrayValidator type has these properties:

NameDescriptionTypeInherited from
itemsNullableWhether items can have the value Node::NullBoolean-
itemsValidatorAnother validator node specifying the constraints on all items in the array.Validator-
containsAn array node is valid if at least one of its items is valid against the contains schema.Validator-
minItemsAn array node is valid if its size is greater than, or equal to, this value.Integer-
maxItemsAn array node is valid if its size is less than, or equal to, this value.Integer-
uniqueItemsA flag to indicate that each value in the array should be unique.Boolean-
idThe identifier for this item.StringEntity

Related

The ArrayValidator type is related to these types:

Bindings

The ArrayValidator type is represented in:


This documentation was generated from ArrayValidator.yaml by docs_types.rs.

© 2026 Stencila