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

add ajvKeywords and useDefaults as options

Open constanzaderienzo opened this issue 1 year ago • 0 comments

As per this issue we are in need of custom keywords.

This pull request adds the support for that.

As the Ajv constructor already supports receiving keywords as options only the declaration for this ajvKeyword type is needed.

** UPDATE ** to stay backward compatible with Osprey we also need Ajv's useDefault in empty. Adding support for that as well.

constanzaderienzo avatar Jun 19 '24 17:06 constanzaderienzo