Enum ValidateErrorCode

Description

Error codes when validating.

See
GenericSchemaValidator

Values

kValidateErrors = -1

Top level error code when kValidateContinueOnErrorsFlag set.

kValidateErrorNone = 0

No error.

kValidateErrorMultipleOf

Number is not a multiple of the 'multipleOf' value.

kValidateErrorMaximum

Number is greater than the 'maximum' value.

kValidateErrorExclusiveMaximum

Number is greater than or equal to the 'maximum' value.

kValidateErrorMinimum

Number is less than the 'minimum' value.

kValidateErrorExclusiveMinimum

Number is less than or equal to the 'minimum' value.

kValidateErrorMaxLength

String is longer than the 'maxLength' value.

kValidateErrorMinLength

String is longer than the 'maxLength' value.

kValidateErrorPattern

String does not match the 'pattern' regular expression.

kValidateErrorMaxItems

Array is longer than the 'maxItems' value.

kValidateErrorMinItems

Array is shorter than the 'minItems' value.

kValidateErrorUniqueItems

Array has duplicate items but 'uniqueItems' is true.

kValidateErrorAdditionalItems

Array has additional items that are not allowed by the schema.

kValidateErrorMaxProperties

Object has more members than 'maxProperties' value.

kValidateErrorMinProperties

Object has less members than 'minProperties' value.

kValidateErrorRequired

Object is missing one or more members required by the schema.

kValidateErrorAdditionalProperties

Object has additional members that are not allowed by the schema.

kValidateErrorPatternProperties

See other errors.

kValidateErrorDependencies

Object has missing property or schema dependencies.

kValidateErrorEnum

Property has a value that is not one of its allowed enumerated values.

kValidateErrorType

Property has a type that is not allowed by the schema..

kValidateErrorOneOf

Property did not match any of the sub-schemas specified by 'oneOf'.

kValidateErrorOneOfMatch

Property matched more than one of the sub-schemas specified by 'oneOf'.

kValidateErrorAllOf

Property did not match all of the sub-schemas specified by 'allOf'.

kValidateErrorAnyOf

Property did not match any of the sub-schemas specified by 'anyOf'.

kValidateErrorNot

Property matched the sub-schema specified by 'not'.

Mentioned in

Source

Lines 162-196 in include/rapidjson/error/error.h.

enum ValidateErrorCode {
    kValidateErrors    = -1,                   //!< Top level error code when kValidateContinueOnErrorsFlag set.
    kValidateErrorNone = 0,                    //!< No error.

    kValidateErrorMultipleOf,                  //!< Number is not a multiple of the 'multipleOf' value.
    kValidateErrorMaximum,                     //!< Number is greater than the 'maximum' value.
    kValidateErrorExclusiveMaximum,            //!< Number is greater than or equal to the 'maximum' value.
    kValidateErrorMinimum,                     //!< Number is less than the 'minimum' value.
    kValidateErrorExclusiveMinimum,            //!< Number is less than or equal to the 'minimum' value.

    kValidateErrorMaxLength,                   //!< String is longer than the 'maxLength' value.
    kValidateErrorMinLength,                   //!< String is longer than the 'maxLength' value.
    kValidateErrorPattern,                     //!< String does not match the 'pattern' regular expression.

    kValidateErrorMaxItems,                    //!< Array is longer than the 'maxItems' value.
    kValidateErrorMinItems,                    //!< Array is shorter than the 'minItems' value.
    kValidateErrorUniqueItems,                 //!< Array has duplicate items but 'uniqueItems' is true.
    kValidateErrorAdditionalItems,             //!< Array has additional items that are not allowed by the schema.

    kValidateErrorMaxProperties,               //!< Object has more members than 'maxProperties' value.
    kValidateErrorMinProperties,               //!< Object has less members than 'minProperties' value.
    kValidateErrorRequired,                    //!< Object is missing one or more members required by the schema.
    kValidateErrorAdditionalProperties,        //!< Object has additional members that are not allowed by the schema.
    kValidateErrorPatternProperties,           //!< See other errors.
    kValidateErrorDependencies,                //!< Object has missing property or schema dependencies.

    kValidateErrorEnum,                        //!< Property has a value that is not one of its allowed enumerated values
    kValidateErrorType,                        //!< Property has a type that is not allowed by the schema..

    kValidateErrorOneOf,                       //!< Property did not match any of the sub-schemas specified by 'oneOf'.
    kValidateErrorOneOfMatch,                  //!< Property matched more than one of the sub-schemas specified by 'oneOf'.
    kValidateErrorAllOf,                       //!< Property did not match all of the sub-schemas specified by 'allOf'.
    kValidateErrorAnyOf,                       //!< Property did not match any of the sub-schemas specified by 'anyOf'.
    kValidateErrorNot                          //!< Property matched the sub-schema specified by 'not'.
};





Add Discussion as Guest

Log in