Skip to content

ApiParam allowableValues string with spaces #1211

@pvpkiran

Description

@pvpkiran

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions