RapiDoc icon indicating copy to clipboard operation
RapiDoc copied to clipboard

Dynamic query params: issues with object parameters

Open mzsrn opened this issue 4 years ago • 5 comments

Hi! I'm using this example - https://rapidocweb.com/examples/dynamic-query-params.html.

I've cleared all the params except dynamic-query-params1. When i'm trying to send request those params look like this:

{
  "d":{ "d1":1, "d2":2 },
  "e":3
}

Output curl looks as follows:

curl -X GET "https://mrin9.github.io/dynamic-query-params?e=3?e=3?e=3" 

mzsrn avatar Jan 28 '21 08:01 mzsrn

well I am getting a curl output as curl -X GET "https://rapidocweb.com/dynamic-query-params?e=3" which IMO seems correct.

can you tell me what is your expected behavior ?

mrin9 avatar Jan 28 '21 14:01 mrin9

i was hoping to see something like that

curl -X GET "https://mrin9.github.io/dynamic-query-params?d%5Bd1%5D=1&d%5Bd2%5D=2&e=3

mzsrn avatar Jan 28 '21 14:01 mzsrn

i c, you are correct, the output you specified is correct. however RapiDoc do not support deepObject in query parameters yet.

will use this issue to track this feature. Thanks for reporting

mrin9 avatar Jan 28 '21 17:01 mrin9

I hope you will find time to implement this thing.

OCharnyshevich avatar Jan 23 '22 16:01 OCharnyshevich

Is this on the roadmap soon? This would be most useful on my current project.

    - in: query
      name: filterfc
      style: deepObject
      explode: true
      schema:
        type: object
        additionalProperties: {}
      example: >
        {
          "facetA": {"valueA": "AAA"},
          "facetB": "valueB"
        }

I would like to get this in curl

# example is without encoding
&filterfc[facetA][valueA]=AAA&filterfc[facetB]=valueB

hrvoj3e avatar Apr 27 '22 19:04 hrvoj3e