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

ApiParam allowableValues string with spaces #1211

Closed
pvpkiran opened this issue Mar 9, 2016 · 1 comment
Closed

ApiParam allowableValues string with spaces #1211

pvpkiran opened this issue Mar 9, 2016 · 1 comment
Labels
Milestone

Comments

@pvpkiran
Copy link

pvpkiran commented Mar 9, 2016

APiParam annotation has a parameter allowableValue. This takes a comma separated string. But if i have a space in one of the values, it is stripping it off. Which is not good. I can pass a string with spaces from the browser url. So i should be able to pass it from swaagger UI as well.

I think the issue is with this line
allowableValueString = allowableValueString.trim().replaceAll(" ", "");
in ApiModelProperties.java file. Line 59

@dilipkrish dilipkrish added the bug label Mar 10, 2016
@dilipkrish dilipkrish added this to the 2.5.0 milestone Mar 10, 2016
@dilipkrish
Copy link
Member

Thanks for catching that @pvpkiran 🤘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants