v5.1.0 raises validation errors to every other field
See original GitHub issueI have a schema with lots of fields and one of them is unique.
When you update values and then save(), if there’s a duplication of that unique field, its validation error is raised fine, but every other field gets a validation error too.
This was introduced in v5.1.0. I think there’s only tests involving simple schemas containing just unique fields. LoL
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
RFC: Don't pass a status_code as kwargs in a Field validator ...
The issue with this is the case of several fields raising with a different status code. The last one to deserialize has priority....
Read more >Submission Validation Service for single project and multi ...
As an example, validation 018.3.2 agency Provide error if this value for any budget year is > 50K for R03 or budget year...
Read more >Active Record Validations - Ruby on Rails Guides
After Active Record has performed validations, any errors found can be accessed through the errors instance method, which returns a collection of errors....
Read more >Displaying only one error message per field - Stack Overflow
Works like a charm in my current Rails Project. The advantageous is, i've put the validator only on a few fields not all....
Read more >ASP.NET Core Blazor forms and input components
Validation is requested on the EditContext when the OnValidationRequested event is raised. All of the errors are cleared. A field changes in the ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Looks like a different issue. Could you create a new one with precise information about your expectations and how the library fails? Thanks! 😃
Yes, now works for me, but I’m not getting the custom message defined in:
The error message I’m getting is
Validator failed for pathemailwith valuesomeone@something.com``Do I create a new issue for this?