Array length failed to match an exact requirement.
Encountered null where an array was expected.
Array length exceeded the configured maximum.
Array length fell below the configured minimum.
Encountered a non-array value.
Encountered null where a boolean was expected.
Encountered a non-boolean value.
Value was not one of the allowed enum options.
Encountered null where an enum value was expected.
Value did not match the expected literal.
Expected an integer but received a fractional value.
Encountered null where a number was expected.
Number exceeded an inclusive maximum.
Number failed to satisfy a strict less-than comparison.
Number fell below an inclusive minimum.
Number failed to satisfy a strict greater-than comparison.
Encountered a non-number value or NaN.
Encountered null where an object was expected.
Encountered a non-object value.
Object contained a property that is not allowed.
Custom refinement predicate returned false.
Value was required but missing or undefined.
String must not be empty.
Encountered null where a string was expected.
String failed to match the configured regular expression.
String length exceeded the configured maximum.
String length fell below the configured minimum.
Encountered a non-string value.
Tuple length did not match its schema definition.
Encountered null where a tuple was expected.
Encountered a non-array value where a tuple was expected.
Encountered null where no union option permits it.
No union option accepted the provided value.
Machine-readable error codes produced by schema validation.
Remarks
Each member maps to a stable numeric identifier so consumers can branch on validation failures without brittle string matching.