Skip to content

Conversation

CaselIT
Copy link
Member

@CaselIT CaselIT commented Apr 4, 2024

Summary of Changes

Extract a common interface for the validator logic, and add support for jsonschema-rs library

Related Issues

Fixes: #2224

@CaselIT
Copy link
Member Author

CaselIT commented Apr 4, 2024

The tests are missing for the new lib

Copy link

codecov bot commented Apr 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (9b27c71) to head (e17ae35).
Report is 162 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@CaselIT CaselIT marked this pull request as ready for review April 11, 2024 19:49
@CaselIT CaselIT requested review from vytas7, nZac and kgriffs April 11, 2024 19:49
@vytas7 vytas7 changed the title Generalize validators and support jsonschema-rs feat: generalize validators and support jsonschema-rs Apr 17, 2024
@vytas7
Copy link
Member

vytas7 commented Sep 20, 2024

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.

@Stranger6667
Copy link

hey! jsonschema-rs author here. Please, if there is anything missing on the jsonschema-rs side, feel free to tag me, I'll do my best to improve the lib and make it more suitable for your use case :)

@CaselIT
Copy link
Member Author

CaselIT commented Jan 22, 2025

hi @Stranger6667 thanks for the offer!

Off the top of my head I don't think there were particular problems with the lib, but I will mention something if anything comes up.

@vytas7
Copy link
Member

vytas7 commented Jan 23, 2025

Thanks for reaching out @Stranger6667!
Echoing @CaselIT, I don't think this is blocking on jsonschema-rs in any way. I'm yet to take a look at this PR more in depth, it unfortunately got sidelined because of the 4.0.0 release work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generalize validators to support additional types of validation other than jsonschema
3 participants