krakenjs / swaggerize-routes

Swagger document driven route builder.
Other
58 stars 57 forks source link

Validation Errors should name the parameters they are validating. #31

Closed duncanhall closed 9 years ago

duncanhall commented 9 years ago

When a parameter validation fails, the error message simply describes a generic value parameter:

ValidationError: value is required ValidationError: value must be a number

..etc..

It would be helpful to give the option for describing which parameter was being validated:

ValidationError: id is required ValidationError: price must be a number

..etc..