Error message when required parameter is missing is misleading

Issue #74 new
Sebastian Tello created an issue

Because of the way parameters are wrapped in a value property (so required can be validated using json schema validation), missing parameter validation errors are misleading. E.g. a missing queryArg required query parameter will result in an error with:

code: 'request.query.incompatible',
message: 'Value is incompatible with the parameter defined in the spec file: should have required property \'value\'',

instead of:

code: 'request.query.incompatible',
message: 'Value is incompatible with the parameter defined in the spec file: should have required property \'queryArg\'',

We should use parsedSpecParameter.name instead of the hardcoded 'value' in:

Comments (1)

  1. Log in to comment