Relative Content

Tag Archive for node.jstypescriptajv

Can I add a mandatory keyword in AJV?

I’m building an API which can consume schema definitions which then get validated using ajv.validateSchema(). I want to add a mandatory keyword ‘sortIndex’ to my meta-schema validation. It needs to be a positive integer. Here’s what I have: