ajv-validator/ajv ? reverse-engineered prompt

Reverse engineered prompt

Build me a fast JSON validation library for Node.js and the browser, something like Ajv.

I want to be able to give it a JSON schema and then validate data against it, with clear true or false results and helpful error messages when something does not match. It should support the common JSON Schema versions, including draft 04, 06, 07, 2019 09, and 2020 12, plus JSON Type Definition too. Please make it work well in strict mode, and include a way to generate standalone validation code so people can use the compiled validator without shipping the whole library at runtime.

Keep the project clean and production ready, with good tests and docs, and make sure it works in both Node and browser environments. If you need to check the latest schema details online, go ahead and do that.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab