swagger-express-middleware icon indicating copy to clipboard operation
swagger-express-middleware copied to clipboard

Only one error in validation error

Open Fyang0219 opened this issue 5 years ago • 0 comments

if I have two required fields in my path, and they both missing from request. the error message and stack only return the first one. is there a way to see both ?

example:

schema:
    required:
         -name
         -type

if both required fields are missing then the validation only returns the first one.

Fyang0219 avatar Jun 10 '19 20:06 Fyang0219