question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ajv configuration

See original GitHub issue

The 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:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
djbeckettcommented, Feb 6, 2019

That sounds perfect! Thank you, thank you.

0reactions
LoicPoullaincommented, Feb 8, 2019

Yes, I just answered. Thank you so much for your support!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ajv options - Ajv JSON schema validator
This page describes properties of the options object that can be passed to Ajv ...
Read more >
Ajv JSON schema validator
The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)
Read more >
Getting started - Ajv JSON schema validator
Ajv takes a schema for your JSON data and converts it into a very efficient ...
Read more >
Managing schemas - Ajv JSON schema validator
The fastest JSON schema Validator.
Read more >
Execution environments - Ajv JSON schema validator
The fastest JSON schema Validator.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found