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
I want to be able to pass a dictionary in the query params of an endpoint. To do this, I created following spec as example:
- name: metadata in: query required: false style: deepObject explode: true schema: type: object additionalProperties: type: string
There are 3 issues (bugs) I am facing:
when I run the openapi-codegenerator (I am running it via Maven plugin) ISSUE 1: it produces the same output irrespective of whether
style: deepObject explode: true
is present or not in the yaml file. The generated Java code is this:
@Parameter(name = "metadata", description = "", in = ParameterIn.QUERY) @Valid @RequestParam(value = "", required = false) Map<String, String> metadata
Further in swagger-ui ISSUE 2: I do not see any UI element corresponding to the metadata variable in above.
metadata
I am using openapi: 3.0.1
openapi: 3.0.1
ISSUE 3: my Spring boot endpoint is like this:
public ResponseEntity<Void> foo( String s1, String s2, Map<String, String> map, SomeEnum someEnum) {
Expected: map should not contain s1, s2, someEnum
map
s1, s2, someEnum
Observed: map contains s1, s2, someEnum
7.4.0
I am not sure if this is same issue as this. Reading that issue it seemed like it is w.r.t. client code whereas my issue is w.r.t. server code.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report Checklist
Description
I want to be able to pass a dictionary in the query params of an endpoint. To do this, I created following spec as example:
There are 3 issues (bugs) I am facing:
when I run the openapi-codegenerator (I am running it via Maven plugin) ISSUE 1: it produces the same output irrespective of whether
is present or not in the yaml file. The generated Java code is this:
Further in swagger-ui ISSUE 2: I do not see any UI element corresponding to the
metadata
variable in above.I am using
openapi: 3.0.1
ISSUE 3: my Spring boot endpoint is like this:
Expected:
map
should not contains1, s2, someEnum
Observed:
map
containss1, s2, someEnum
openapi-generator version
7.4.0
Generation Details
Steps to reproduce
Related issues/PRs
I am not sure if this is same issue as this. Reading that issue it seemed like it is w.r.t. client code whereas my issue is w.r.t. server code.
The text was updated successfully, but these errors were encountered: