Skip to content
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 string should be a valid string parameter #229

Merged
merged 1 commit into from
Apr 11, 2016
Merged

Conversation

matteofigus
Copy link
Member

This fixes the problem for both optional and mandatory string parameters for when an empty string is provided both via a GET or a POST api request.

Specifically, currently, when a a parameter is an optional string, ...?c=d is valid, ...?a=&c=d is not. It should be instead.

Same when mandatory: ...?c=d errors and still should, but ...?a=&c=4 errors too but it should be valid instead.

@federicomaffei
Copy link
Collaborator

seems good to me - happy for this to be merged @matteofigus ?

@federicomaffei federicomaffei merged commit a1d624d into master Apr 11, 2016
@matteofigus matteofigus deleted the empty-string branch April 11, 2016 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants