Skip to main content

ValidationFailedExceptionInviteCustomerQueryDtoQuery

codeValidationFailedQueryCoderequired
Constant value: VALIDATION_FAILED_QUERY
data objectrequired
errors object[]required
  • Array [
  • oneOf
    pathstringrequired
    Constant value: cursor
    constraintstringrequired
    Constant value: isValidCursor
    messagestringrequired
    Constant value: cursor must be a valid cursor format
  • ]
  • messagestringrequired
    Constant value: Validation failed
    traceIdstring
    ValidationFailedExceptionInviteCustomerQueryDtoQuery
    {
    "code": "VALIDATION_FAILED_QUERY",
    "data": {
    "errors": [
    {
    "path": "cursor",
    "constraint": "isValidCursor",
    "message": "cursor must be a valid cursor format"
    },
    {
    "path": "fields",
    "constraint": "arrayMaxSize",
    "message": "fields must contain no more than 2 elements"
    },
    {
    "path": "fields",
    "constraint": "arrayMinSize",
    "message": "fields must contain at least 1 elements"
    },
    {
    "path": "fields",
    "constraint": "arrayUnique",
    "message": "All fields's elements must be unique"
    },
    {
    "path": "fields",
    "constraint": "isArray",
    "message": "fields must be an array"
    },
    {
    "path": "fields",
    "constraint": "isEnum",
    "message": "each value in fields must be one of the following values: attributes, contacts"
    },
    {
    "path": "limit",
    "constraint": "isInt",
    "message": "limit must be an integer number"
    },
    {
    "path": "limit",
    "constraint": "max",
    "message": "limit must not be greater than 50"
    },
    {
    "path": "limit",
    "constraint": "min",
    "message": "limit must not be less than 1"
    },
    {
    "path": "sort",
    "constraint": "isEnum",
    "message": "sort must be one of the following values: name, -name"
    },
    {
    "path": "unknownField",
    "constraint": "whitelistValidation",
    "message": "property unknownField should not exist"
    }
    ]
    },
    "message": "Validation failed",
    "traceId": "string"
    }