mulesoft-labs / osprey-method-handler

Middleware for validating requests and responses based on a RAML method object
Other
16 stars 16 forks source link

Improved: Use an optional user-provided ajv instance for JSON schema validation #49

Closed postatum closed 5 years ago

postatum commented 5 years ago

Originates from PR #43 . Original PR looks good to me.

In this PR I've removed comments in tests and fixed conflicts.

postatum commented 5 years ago

Tests will need to be updated after #50 is merged

postatum commented 5 years ago

Missing mention of new option in README file. Maybe add a link to AJV next to Features > Request body validation > JSON schemas? Something like: "JSON schemas (ajv.addMetaSchema using AJV to override default JSON schema draft version)"

Done. Described a bit differently.