Ajv configuration
See original GitHub issueThe Validation feature uses Ajv and Foal uses a baseline configuration that includes:
removeAdditional: true
For my purposes, I need this to be false
. Other than monkey patching* Foal to change this setting (which I’ve done and it does now do what I need it to), how can I set this Ajv config value?
* monkey patched here: @foal/core/lib/common/utils/get-ajv-instance.js
By the way, I’ve spend the last few weeks looking into every Express framework and boilerplate I can find and FoalTS is BY FAR the best of them all. Better in every way: features, clarity of docs, accuracy of docs, responsive support, ongoing development, not bloated, clearly understands the needs of api developers, etc. We’re doing a proof-of-concept now with Foal for an open api, which is why I’m focusing on the details of data validation. Thank you so much for this excellent framework!
dan
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
That sounds perfect! Thank you, thank you.
Yes, I just answered. Thank you so much for your support!