-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Empty parameters are treated as missing #431
Comments
I introduced this change in previous release. The motivation was form submits where if you leave some field blank you get an empty string for me this should be treat as missing, simplify form validation. What is the use case for treating empty parameter as empty list? For example:
Give you |
Elasticsearch have a |
Odd, but how an empty list will help there? Still not sure if |
well, got some issues/questions about this in the google group... think going to revert the changes I did... will that work for you guys? |
Hello, I am a little bit late on the train, but @wenerme gave the exact example I was referring to: a flag to enable a functionality. |
was reverted found another way of handling absent/empty string while submitting forms 👍 |
Given the following server:
Empty parameters are treated as missing:
One sometime wants to distinguish between an absent and empty parameter. I believe the result should be:
Optional.empty
Optional[]
Optional[]
Optional[abc]
Any thought on this?
The text was updated successfully, but these errors were encountered: