-
Notifications
You must be signed in to change notification settings - Fork 100
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
Change format of content of _validation field (#425) #431
Change format of content of _validation field (#425) #431
Conversation
Thanks @rochamatcomp for the PR! @curita @fcanobrash Are you aware of any other tool that may need to be updated to adapt to this new format? |
|
||
for field_name, messages in errors.items(): | ||
errors_field_instance[field_name] += messages | ||
|
||
# change defaultdict to dict for errors_field_instance |
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.
nitpick This comment is redundant.
@VMRuiz given that a |
The two failed tests are fixed in #432. |
Notice that in your issue you said:
which would require to convert Is @rochamatcomp approach what you were expecting? |
I'm expecting change from The list inside the default/dict don't change. |
Sorry, my previous comment was aim to @rennerocha |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #431 +/- ##
=======================================
Coverage 79.39% 79.39%
=======================================
Files 76 76
Lines 3223 3223
Branches 534 534
=======================================
Hits 2559 2559
Misses 593 593
Partials 71 71 ☔ View full report in Codecov by Sentry. |
The content of _validation field must to be the string representation of a Python dict instead defaultdict when SPIDERMON_VALIDATION_ADD_ERRORS_TO_ITEMS setting is True.
94d5524
to
12f63bc
Compare
The content of _validation field must to be the string representation of a Python dict instead defaultdict when SPIDERMON_VALIDATION_ADD_ERRORS_TO_ITEMS setting is True.