networknt / json-schema-validator

A fast Java JSON schema validator that supports draft V4, V6, V7, V2019-09 and V2020-12
Apache License 2.0
822 stars 323 forks source link

Fixes for discriminator #971

Closed justin-tay closed 6 months ago

justin-tay commented 6 months ago

Closes #609, closes #588

This fixes issues with the discriminator and also adds support for processing in oneOf.

codecov-commenter commented 6 months ago

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (2879ca3) 78.59% compared to head (391125e) 78.67%.

Files Patch % Lines
...a/com/networknt/schema/DiscriminatorValidator.java 76.19% 2 Missing and 3 partials :warning:
...main/java/com/networknt/schema/OneOfValidator.java 86.66% 0 Missing and 4 partials :warning:
...main/java/com/networknt/schema/JsonMetaSchema.java 80.00% 0 Missing and 1 partial :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #971 +/- ## ============================================ + Coverage 78.59% 78.67% +0.07% - Complexity 1810 1835 +25 ============================================ Files 161 162 +1 Lines 5887 5941 +54 Branches 1119 1138 +19 ============================================ + Hits 4627 4674 +47 - Misses 833 835 +2 - Partials 427 432 +5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.