Home

Enum Validator

This is a type used in Stencila Schema for validating nodes against an enumerated set of values.

It adapts the JSON Schema enum concept to Stencila's validator system, allowing a value to be constrained to one of several explicitly listed node values.

The main property is values.

Properties

The EnumValidator type has these properties:

NameDescriptionTypeInherited from
valuesA node is valid if it is equal to any of these values.Node*-
idThe identifier for this item.StringEntity

Related

The EnumValidator type is related to these types:

Bindings

The EnumValidator type is represented in:


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

© 2026 Stencila