PayU / openapi-validator-middleware

Input validation using Swagger (Open API) and ajv
Apache License 2.0
144 stars 50 forks source link

Additional properties parameter is not shown in validation error #91

Closed kerenfi closed 5 years ago

kerenfi commented 5 years ago

Experience: The error message is not descriptive when using flag additionalProperties: false, which avoids adding attributes which are not part of the described schema.

Current behavior: error message contains the message without the parameters. body should NOT have additional properties

Expected behavior: body should NOT have additional properties [<param>]