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

Optimize hasAdjacentKeywordInEvaluationPath #1092

Closed justin-tay closed 1 month ago

justin-tay commented 1 month ago

Closes #1091

This optimizes the hasAdjacentKeywordInEvaluationPath function by attempting to detect when the instanceLocation changes as it is really trying to find the adjacent keywords to the instance location for use later during annotation processing.

codecov-commenter commented 1 month 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 78.08%. Comparing base (48ca3c2) to head (990b561). Report is 51 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 #1092 +/- ## ============================================ - Coverage 78.90% 78.08% -0.82% - Complexity 1965 2070 +105 ============================================ Files 172 201 +29 Lines 6352 6886 +534 Branches 1255 1265 +10 ============================================ + Hits 5012 5377 +365 - Misses 867 1036 +169 Partials 473 473 ```

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