mservicetech / openapi-schema-validation

Apache License 2.0
15 stars 9 forks source link

Field name(s) should be included in the error #4

Closed billvickery closed 3 years ago

billvickery commented 3 years ago

If a field or fields are not compliant, the field name itself should be included in the error object

GavinChenYan commented 3 years ago

In the status description, it includes field name.

For example:

{"statusCode":400,"code":"ERR11004","message":"VALIDATOR_SCHEMA","description":"Schema Validation Error - petId: must have a maximum value of 5","severity":"ERROR"}