ajv-validator / ajv

The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)
https://ajv.js.org
MIT License
13.84k stars 877 forks source link

Renaming library keywords with custom keywords #1271

Open ValfarDeveloper opened 4 years ago

ValfarDeveloper commented 4 years ago

Hi, thank you very much for this library, it is amazing! I'd like to know if is possible to rename the library keywords, for example rename $id, $ref, etc. with custom words. This is because i'm trying to save the schemas on MongoDB and it is throwing errors due that MongoDB doesn't allow save document properties prefixed with '$' sign.

epoberezkin commented 4 years ago

They are quite embedded in code, so it can only be done by forking/editing code.