Skip to content

Support readOnly and writeOnly for required validation #1186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 30, 2025

Conversation

justin-tay
Copy link
Contributor

Closes #1185

Add support for ignoring readOnly or writeOnly fields for required validation.

@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 72.22222% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.29%. Comparing base (48ca3c2) to head (dabc409).
⚠️ Report is 94 commits behind head on master.

Files with missing lines Patch % Lines
...n/java/com/networknt/schema/RequiredValidator.java 68.75% 1 Missing and 4 partials ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1186      +/-   ##
============================================
- Coverage     78.90%   78.29%   -0.62%     
- Complexity     1965     2080     +115     
============================================
  Files           172      201      +29     
  Lines          6352     6873     +521     
  Branches       1255     1260       +5     
============================================
+ Hits           5012     5381     +369     
- Misses          867     1019     +152     
  Partials        473      473              

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

@stevehu stevehu merged commit a8bda4c into networknt:master Jul 30, 2025
4 checks passed
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.

Inconsistent OpenAPI validation of read-only & required field
3 participants