Skip to content

incorrect nested query params serialization #464

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

Open
HeedjyCompany opened this issue Nov 25, 2022 · 2 comments
Open

incorrect nested query params serialization #464

HeedjyCompany opened this issue Nov 25, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@HeedjyCompany
Copy link

Hello,

I'm using the 12.0.2

When an endpoint has a query param containing a nested object like this :

- name: pageParams
          in: query
          required: false
          explode: true
          schema:
            $ref: "common.yaml#/components/schemas/PaginatedRequestParams"
    PaginatedRequestParams: 
      description:
        Page params to search the collection (this is an exploded object, so pass the inner properties directly)
      type: object
      properties:
        limit:
          description: Number of elements to retrieve
          type: integer
          default: 50
        cursor:
          description: Cursor from a previous search
          type: string
          format: base64
        returnCount:
          description: Set to 'true' to obtain the total count of the collection (use only when necessary, may be performance-costly)
          type: boolean
          default: false

The request query is serialized like this :

&pageParams=%5Bobject%20Object%5D

however the type seems ok :

 query?: {
...
                pageParams?: PaginatedRequestParams;
            },

Looking at the issue history, it seemed to be handled at a time but a reverted in this fix :
#228

@AshotN
Copy link

AshotN commented Aug 21, 2023

@HeedjyCompany were you able to resolve this?

@sbres
Copy link

sbres commented Aug 8, 2024

I'm having the same issue this is annoying

@smorimoto smorimoto added the bug Something isn't working label Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants