-
-
Notifications
You must be signed in to change notification settings - Fork 945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: generalize validators and support jsonschema-rs
#2225
base: master
Are you sure you want to change the base?
Conversation
…port integrating other validation libraries
The tests are missing for the new lib |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2225 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 63 65 +2
Lines 6931 6987 +56
Branches 1258 1266 +8
=========================================
+ Hits 6931 6987 +56 ☔ View full report in Codecov by Sentry. |
jsonschema-rs
I love this improvement, but I would like to coordinate this with an App-wide OpenAPI spec, and App-wide media validators (we would support both ways, just as middleware and hooks coexist). Unfortunately we won't be able to complete all this before the 4.0 release. Let's circle back on this for 4.1. |
Summary of Changes
Extract a common interface for the validator logic, and add support for jsonschema-rs library
Related Issues
Fixes: #2224