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
800 stars 320 forks source link

Fix oneOf when discriminator enabled but no discriminator #1078

Closed justin-tay closed 1 week ago

justin-tay commented 1 week ago

Fixes issue when oneOf when discriminator enabled but no discriminator causes no details in errors. Such cases should behave as a normal oneOf.

codecov-commenter commented 1 week ago

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

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 77.98%. Comparing base (48ca3c2) to head (ebb2b65). Report is 42 commits behind head on master.

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1078 +/- ## ============================================ - Coverage 78.90% 77.98% -0.92% - Complexity 1965 2053 +88 ============================================ Files 172 198 +26 Lines 6352 6855 +503 Branches 1255 1257 +2 ============================================ + Hits 5012 5346 +334 - Misses 867 1032 +165 - Partials 473 477 +4 ```

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