ValidationCompoundError

Extends

code
readonly
Default: 400
failures
readonly
Type:
[Object, ...]
Example:
[
  {
    dataPath: '.name',
    message: 'should be a string'
  }
]
message
Type:
String
new ValidationCompoundError(context)
Parameters:
  • context
    • Type: [Object, ...]
      • keyword
        • Type: String
      • dataPath
        • Type: String
      • schemaPath
        • Type: String
      • params
        • Type: Object
      • parentSchema
        • Type: Object
      • data
        • Type: mixed
      • message
        • Type: String
setUID(uid)
Parameters:
  • uid
    • Type: String or Integer
    • request indentifier

toJSON()Object
Returns: Object
toLogger()Object

similar to RequestError#toJSON except that it returns all information available instead of just public user facing error description.

Returns: Object
toSwagger()Object

Open API schema representation of the error response

Returns: Object
comments powered by Disqus