disarm-platform / config-validation

Library to handle validation of configs
MIT License
0 stars 0 forks source link

reduce size of ajv by pre-compiling required schema validation function #20

Open onlyjsmith opened 6 years ago

onlyjsmith commented 6 years ago

Using https://github.com/epoberezkin/ajv-pack to do something like ajv compile -s schema.json -o validate_schema.js

Worth checking limitations before we start

To fix this size issue - currently in registry-client, but will be in any client that uses either https://github.com/locational/config-validation or https://github.com/locational/geodata-support

image