-
Notifications
You must be signed in to change notification settings - Fork 44
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
fix: Add validation to JSON fields #2375
fix: Add validation to JSON fields #2375
Conversation
2f9e4ea
to
97f02e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing! The additional test coverage is nice.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2375 +/- ##
===========================================
- Coverage 75.03% 74.99% -0.04%
===========================================
Files 266 266
Lines 25855 25869 +14
===========================================
Hits 19400 19400
- Misses 5150 5161 +11
- Partials 1305 1308 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 8 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
custom | ||
} | ||
}`, | ||
ExpectedError: `Argument "input" has invalid value {name: "John", custom: "{\"tree\": \"maple, \"age\": 250}"}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
though: LOL that's a long error 😱
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NICE!
Praise:
Coverage 74.98% 74.99% +0.01%
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome. Thanks for tests
97f02e8
to
f7a6a45
Compare
Relevant issue(s)
Resolves #2370
Description
This PR adds validation to JSON fields.
Tasks
How has this been tested?
make test
Specify the platform(s) on which this was tested: