We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How can I achieve the following generated mapping?
"parameters":[ { "name":"myformat", "in":"query", "required":true, "type":"string", "allowEmptyValue":false, "enum":[ "csv", "json", "xml" ] } ]
@Parameter(name = "myformat", required = true) String myformat
Maybe you could add a property allowableValues = ["csv", "json", "xml"] to @Parameter?
allowableValues = ["csv", "json", "xml"]
@Parameter
The text was updated successfully, but these errors were encountered:
Hi,
Here is a sample code, how to achieve Enums.
@GetMapping("/example") public Object example(@Parameter(name ="json", schema = @Schema(description = "var 1",type = "string", allowableValues = {"1", "2"})) String json) { return null; }
Sorry, something went wrong.
No branches or pull requests
How can I achieve the following generated mapping?
Maybe you could add a property
allowableValues = ["csv", "json", "xml"]
to@Parameter
?The text was updated successfully, but these errors were encountered: