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

Optimize getValueNodeType #1048

Closed justin-tay closed 1 month ago

justin-tay commented 1 month ago

Optimized the performance of the type validator by refactoring getValueNodeType.

codecov-commenter commented 1 month ago

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Project coverage is 78.72%. Comparing base (48ca3c2) to head (9b6de48). Report is 17 commits behind head on master.

Files Patch % Lines
...rc/main/java/com/networknt/schema/TypeFactory.java 91.66% 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 #1048 +/- ## ============================================ - Coverage 78.90% 78.72% -0.19% - Complexity 1965 2030 +65 ============================================ Files 172 191 +19 Lines 6352 6589 +237 Branches 1255 1260 +5 ============================================ + Hits 5012 5187 +175 - Misses 867 927 +60 - Partials 473 475 +2 ```

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