express-openapi-validator icon indicating copy to clipboard operation
express-openapi-validator copied to clipboard

[feat] - Add async serdes.deserialize support & req/res as context

Open macyabbey-okta opened this issue 3 years ago • 0 comments

  • 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:

image image

Full run pass: image

macyabbey-okta avatar Jul 17 '22 22:07 macyabbey-okta