You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should look a bit more at how we do validation.
Currently, we enforce AJV validation for query params etc.
Feedback for the current approach:
Downside with AJV (and runtypes) is that the schema is another API that you have to learn. And it is kinda redundant when you also have TS declarations.
Adds extra CPU cycles to every request
Suggested improvement from feedback
Make it configurable so you can validate with something else other than AJV or even disable in prod while leaving it enabled for local and dev/staging
Questions
What is the cost of validation of every request runtime?
Are there other approaches we should/could look at for validation?
The text was updated successfully, but these errors were encountered:
We should look a bit more at how we do validation.
Currently, we enforce AJV validation for query params etc.
Feedback for the current approach:
Suggested improvement from feedback
Questions
The text was updated successfully, but these errors were encountered: