Logo
NeoArc Studio

Validation Rules Reference

Complete reference for field-level validation rules including string, numeric, boolean, array, and object rules.

Field-level validation rules protect data integrity. The editor includes a comprehensive set of validation rules organised by field type.

General Rules (All Types)

Rules applicable to all field types
RuleDescription
requiredField must be present
nullableAllow null values
constMust equal specific value
enumValue in allowed list
notEnumValue not in list
formatMust match format
typeType validation
customCustom expression

String Rules

Numeric Rules

Numeric validation rules
RuleDescription
minMinimum value (inclusive)
maxMaximum value (inclusive)
exclusiveMinMinimum value (exclusive)
exclusiveMaxMaximum value (exclusive)
rangeValue in range
positiveMust be positive
nonNegativeMust be zero or positive
negativeMust be negative
nonPositiveMust be zero or negative
multipleOfMust be multiple of value

Boolean Rules

Boolean validation rules
RuleDescription
requiredMust be present
mustBeTrueMust be true
mustBeFalseMust be false
constMust equal specific value

Array Rules

Array validation rules
RuleDescription
minItemsMinimum array length
maxItemsMaximum array length
uniqueItemsAll items must be unique
containsMust contain specific item
allowEmptyAllow empty arrays

Object Rules

Object validation rules
RuleDescription
minPropertiesMinimum property count
maxPropertiesMaximum property count
requiredPropertySpecific property required
forbiddenPropertySpecific property forbidden
propertyPatternProperty names must match pattern
dependenciesProperty dependencies

Validation Message

Validation message properties
PropertyDescription
textHuman-readable message
codeInternal error code
httpStatusCodeHTTP status (400, 422, etc.)
catalogKeyi18n key for translation
severityerror, warning, or info
propertiesFree-form metadata