fastify / fastify-response-validation

A simple plugin that enables response validation for Fastify.
MIT License
51 stars 14 forks source link

Fix issue with passing in non-draft 7 AJV instance. Issue 107 #108

Closed nicobuzeta closed 6 months ago

nicobuzeta commented 6 months ago

Fixes issue 107 by using the base class of AJV to validate the AJV instance that is passed in.

(I don't usually use JavaScript, but I think this should solve my issue, since all AJV validators inherit from this class)

Checklist