Home

Constant Validator

This is a type used in Stencila Schema for validating nodes against a fixed value.

It adapts the JSON Schema const concept to Stencila's validator system, allowing a constraint to require exact equality with a single node value.

The main property is value.

Properties

The ConstantValidator type has these properties:

NameDescriptionTypeInherited from
valueThe value that the node must have.Node-
idThe identifier for this item.StringEntity

Related

The ConstantValidator type is related to these types:

Bindings

The ConstantValidator type is represented in:


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

© 2026 Stencila