Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

justin-tay
Copy link
Contributor

This is the start of the breaking changes for 2.x. I think this should still be targeting JDK 8 and Jackson 2. When it's done then 3.x will be JDK 17 and Jackson 3 as Jackson 3 is min JDK 17.

This removes the validation message handler base class and fixes the class hierarchy of the JsonSchema and the rest of the validators. Previously JsonSchema had some of the validator methods like getKeyword() and preloadSchema() which was confusing as for JsonSchema to preload you had to call initializeValidators() and it doesn't have a keyword.

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 76.04790% with 40 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.94%. Comparing base (48ca3c2) to head (710a1b5).
⚠️ Report is 102 commits behind head on master.

Files with missing lines Patch % Lines
src/main/java/com/networknt/schema/JsonSchema.java 76.47% 8 Missing and 4 partials ⚠️
...a/com/networknt/schema/DiscriminatorValidator.java 80.35% 4 Missing and 7 partials ⚠️
...n/java/com/networknt/schema/BaseJsonValidator.java 64.00% 7 Missing and 2 partials ⚠️
.../java/com/networknt/schema/UnionTypeValidator.java 16.66% 5 Missing ⚠️
.../main/java/com/networknt/schema/ErrorMessages.java 86.36% 1 Missing and 2 partials ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1196      +/-   ##
============================================
- Coverage     78.90%   77.94%   -0.96%     
- Complexity     1965     2085     +120     
============================================
  Files           172      202      +30     
  Lines          6352     6942     +590     
  Branches       1255     1266      +11     
============================================
+ Hits           5012     5411     +399     
- Misses          867     1063     +196     
+ Partials        473      468       -5     

☔ 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.

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.

2 participants