express-openapi-validator
express-openapi-validator copied to clipboard
🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.x specification
I was having the same issue where I wanted to send a custom error response format when encountering a 401 or 403 when validating tokens. The solution that I went...
**Describe the bug** applying multiple specs to `middleware` does not seem to be supported. only the very first applied spec is working. I found this issue, but it applied to...
I refrained from labeling this a Bug report or Feature request, since it may be my own syntactic error 😄. **OpenApiValidator config:** ``` app.use(OpenApiValidator.middleware({ apiSpec: openapiSpec, validateRequests: false, validateResponses: {...
**Describe the bug** When a query parameter is empty, the BadRequest error thrown by `express-openapi-validator` does not contain an errorCode property, whereas other errors do. **To Reproduce** Specify a parameter...
- Leverage ajv asyc keywords in serdes deserialization. - Leverage passContext for format.validate, deserialize, serialize - Add tests for async and context - Allow HttpErrors thrown from deserialize to influence...
**Describe the bug** Request body with data for fields that are readOnly throws errors. **To Reproduce** Define field as readonly, and send a POST, or PUT with a payload that...
Bumps [terser](https://github.com/terser/terser) from 5.7.2 to 5.14.2. Changelog Sourced from terser's changelog. v5.14.2 Security fix for RegExps that should not be evaluated (regexp DDOS) Source maps improvements (#1211) Performance improvements in...
**Describe the bug** installOperationHandlers seems to be called on every iteration of the request resolving. This seems to be a lot of overhead **To Reproduce** I have implemented a custom...
**Is your feature request related to a problem? Please describe.** Validation error messages are english **Describe the solution you'd like** The possibility to localize error messages **Additional context** Ajv seems...
**Describe the bug** Getting a type error when I try to access properties of errors array within an error object of type `ValidationError` **To Reproduce** Access the property `errorCode` inside...