PayU / openapi-validator-middleware

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

parseAjvError function throws un handle error #3

Closed shyimo closed 6 years ago

shyimo commented 7 years ago

from code: line 135-137: if (error.keyword === 'enum') { error.message += ' [' + error.params.allowedValues.toString() + ']'; }

error.params.allowedValues is undefined and to toString function throws error.

idanto commented 6 years ago

resolved in version 0.3