-
Notifications
You must be signed in to change notification settings - Fork 292
Add error messages for json #637
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
Conversation
CodSpeed Performance ReportMerging #637 Summary
Benchmarks breakdown
|
src/errors/types.rs
Outdated
@@ -541,8 +541,14 @@ impl ErrorType { | |||
pub fn message_template_json(&self) -> &'static str { | |||
match self { | |||
Self::NoneRequired => "Input should be null", | |||
Self::ListType => "Input should be a valid array", | |||
Self::DataclassType { .. } => "Input should be an object", 8000 | |||
Self::DictAttributesType => "Input should be a valid object or instance to extract fields from", |
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.
Should we explicitly add all of them, or it's fine to have the fallback?
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.
fine to have fallback.
I think this one can be removed add added to the "Input should be an object"
message.
please review |
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.
otherwise LGTM. Please update.
src/errors/types.rs
Outdated
@@ -541,8 +541,14 @@ impl ErrorType { | |||
pub fn message_template_json(&self) -> &'static str { | |||
match self { | |||
Self::NoneRequired => "Input should be null", | |||
Self::ListType => "Input should be a valid array", | |||
Self::DataclassType { .. } => "Input should be an object", | |||
Self::DictAttributesType => "Input should be a valid object or instance to extract fields from", |
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.
fine to have fallback.
I think this one can be removed add added to the "Input should be an object"
message.
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #637 +/- ##
==========================================
- Coverage 94.10% 93.85% -0.26%
==========================================
Files 99 99
Lines 13561 13640 +79
Branches 25 25
==========================================
+ Hits 12762 12802 +40
- Misses 793 832 +39
Partials 6 6
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Selected Reviewer: @dmontagu