express-openapi-validator
express-openapi-validator copied to clipboard
[feat] - Add async serdes.deserialize support & req/res as context
- 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 errors thrown to express error handling. Determine status code of resulting error based on what aspect of the request originated the deserialization failure.
- Modify schema pre-processor to not share memory between ajv instance and apiDoc.
- Modify schema pre-processor to not share memory between request and response apiDoc.
- Update CONTRIBUTING.md with explanation of how package works, diagram and code notes.
@cdimascio
Add test coverage:
Full run pass:
