@@ -92,20 +92,20 @@ added: REPLACEME
9292The following error codes are returned in the ` code ` field of validation
9393error objects. They are also available as properties of the ` codes ` export.
9494
95- | Code | Description |
96- | ---- | ----------- |
97- | ` INVALID_TYPE ` | Value type does not match the declared type |
98- | ` MISSING_REQUIRED ` | A required property is missing |
99- | ` STRING_TOO_SHORT ` | String is shorter than ` minLength ` |
100- | ` STRING_TOO_LONG ` | String is longer than ` maxLength ` |
101- | ` PATTERN_MISMATCH ` | String does not match the ` pattern ` regex |
102- | ` ENUM_MISMATCH ` | Value is not one of the allowed ` enum ` values |
103- | ` NUMBER_TOO_SMALL ` | Number is below ` minimum ` or ` exclusiveMinimum ` |
104- | ` NUMBER_TOO_LARGE ` | Number is above ` maximum ` or ` exclusiveMaximum ` |
105- | ` NUMBER_NOT_MULTIPLE ` | Number is not a multiple of ` multipleOf ` |
106- | ` NOT_INTEGER ` | Value is not an integer when ` type ` is ` 'integer' ` |
107- | ` ARRAY_TOO_SHORT ` | Array has fewer items than ` minItems ` |
108- | ` ARRAY_TOO_LONG ` | Array has more items than ` maxItems ` |
95+ | Code | Description |
96+ | --------------------- | ---------------------------------------------------------------------------- ----------- |
97+ | ` INVALID_TYPE ` | Value type does not match the declared type |
98+ | ` MISSING_REQUIRED ` | A required property is missing |
99+ | ` STRING_TOO_SHORT ` | String is shorter than ` minLength ` |
100+ | ` STRING_TOO_LONG ` | String is longer than ` maxLength ` |
101+ | ` PATTERN_MISMATCH ` | String does not match the ` pattern ` regex |
102+ | ` ENUM_MISMATCH ` | Value is not one of the allowed ` enum ` values |
103+ | ` NUMBER_TOO_SMALL ` | Number is below ` minimum ` or ` exclusiveMinimum ` |
104+ | ` NUMBER_TOO_LARGE ` | Number is above ` maximum ` or ` exclusiveMaximum ` |
105+ | ` NUMBER_NOT_MULTIPLE ` | Number is not a multiple of ` multipleOf ` |
106+ | ` NOT_INTEGER ` | Value is not an integer when ` type ` is ` 'integer' ` |
107+ | ` ARRAY_TOO_SHORT ` | Array has fewer items than ` minItems ` |
108+ | ` ARRAY_TOO_LONG ` | Array has more items than ` maxItems ` |
109109| ` ADDITIONAL_PROPERTY ` | Object has a property not listed in ` properties ` when ` additionalProperties ` is ` false ` |
110110
111111Compare the ` code ` field of a validation error against the ` codes ` export
0 commit comments