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
Required Without and some other rules not working together #624
Comments
Thanks for reporting, I’ll try to take a look at the required_* functionality this weekend now that you’ve found a repeatable issue :) I’m curious about the validation, Name is set to be required always, so the required_without=Name seems unnecessary unless I’m missing something? Also curious why the Name and password strings are pointers? Maybe there’s a use case beyond this small example? |
Thanks!
Just an example
There are pointers for the db orm to make sure the fields are |
Could u try with |
TL;DR Looks like the order is important here. See this playground link for more information. |
This resolved my issue. I could not find that i have to put omitempty. |
@loeffel-io Again, thank you for your question. It looks like the issue was resolved so we're going to go ahead and close this issue. As always, we encourage you to reach out if you have any follow-up questions. |
Too many issues with this library!
Package version eg. v8, v9:
v10
Issue, Question or Enhancement:
required_without=Name,min=3
throws:Code sample, to showcase or reproduce:
The text was updated successfully, but these errors were encountered: