Home

String Validator

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

It adapts common JSON Schema string constraints to Stencila's validator system, allowing length limits and pattern checks to be expressed as structured validator nodes.

Key properties include minLength, maxLength, and pattern.

Properties

The StringValidator type has these properties:

NameDescriptionTypeInherited from
minLengthThe minimum length for a string node.Integer-
maxLengthThe maximum length for a string node.Integer-
patternA regular expression that a string node must match.String-
idThe identifier for this item.StringEntity

Related

The StringValidator type is related to these types:

Bindings

The StringValidator type is represented in:


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

© 2026 Stencila