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

Wrong dynamic query parameter names in spring #12399

Open
grindnoise opened this issue May 14, 2024 · 0 comments
Open

Wrong dynamic query parameter names in spring #12399

grindnoise opened this issue May 14, 2024 · 0 comments

Comments

@grindnoise
Copy link

Description

Hello, I'm trying to generate dynamic query parameter names in spring boot, I'm trying to get this
https://example.com/api_v3/v3/filters?static_arg=smth&freeform_arg1=value1&freeform_arg2=value2

but instead generated url is
https://example.com/api_v3/v3/filters?static_arg=smth&applied_filters=class%20AppliedFilter%20%7B%0A%20%20%20%20%7Barg2%3Dvalue2%2C%20arg1%3Dvalue1%7D%0A%7D

Swagger-codegen version

3.0.55

Swagger declaration file content or url
  /api_v3/v3/filters:
    get:
      parameters:
        - $ref: '#/components/parameters/static_arg'
        - in: query
          name: applied_filters
          schema:
            $ref: "#/components/schemas/AppliedFilter"
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilterResponseV3'

components:

  schemas:
    AppliedFilter:
      type: object
      additionalProperties:
        type: string
Suggest a fix/enhancement

Maybe it's a wrong specification declaration, or a bug. Please, help!

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

No branches or pull requests

1 participant