Skip to main content

ValidationFailedDataListProjectCustomerQueryDto

errors object[]required
  • Array [
  • oneOf
    pathstringrequired
    Constant value: cursor
    constraintstringrequired
    Constant value: isValidCursor
    messagestringrequired
    Constant value: cursor must be a valid cursor format
  • ]
  • ValidationFailedDataListProjectCustomerQueryDto
    {
    "errors": [
    {
    "path": "cursor",
    "constraint": "isValidCursor",
    "message": "cursor must be a valid cursor format"
    },
    {
    "path": "fields",
    "constraint": "arrayMaxSize",
    "message": "fields must contain no more than 4 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, userAccesses, latestRound, mainContact"
    },
    {
    "path": "isTest",
    "constraint": "isBoolean",
    "message": "isTest must be a boolean value"
    },
    {
    "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, createdAt, -createdAt"
    },
    {
    "path": "status",
    "constraint": "arrayMaxSize",
    "message": "status must contain no more than 3 elements"
    },
    {
    "path": "status",
    "constraint": "arrayMinSize",
    "message": "status must contain at least 1 elements"
    },
    {
    "path": "status",
    "constraint": "arrayUnique",
    "message": "All status's elements must be unique"
    },
    {
    "path": "status",
    "constraint": "isArray",
    "message": "status must be an array"
    },
    {
    "path": "status",
    "constraint": "isEnum",
    "message": "each value in status must be one of the following values: published, draft, finished"
    },
    {
    "path": "unknownField",
    "constraint": "whitelistValidation",
    "message": "property unknownField should not exist"
    }
    ]
    }