# Support for requests with JSON objects as query parameters?

**URL:** <https://community.postman.com/t/support-for-requests-with-json-objects-as-query-parameters/57386>\
**Category:** Help Hub\
**Tags:** variables, collections, openapi-to-postmanv2\
**Created:** [February 6, 2024, 8:01pm UTC](https://community.postman.com/t/support-for-requests-with-json-objects-as-query-parameters/57386 "2024-02-06T20:01:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gorbster](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gorbster/32/27372_2.png) [@gorbster](https://community.postman.com/u/gorbster)\
**Post date:** [February 6, 2024, 8:01pm UTC](https://community.postman.com/t/support-for-requests-with-json-objects-as-query-parameters/57386/1 "2024-02-06T20:01:23Z")

</div>

Hello,

Does Postman support collections for requests that have objects as query string parameters - specifically collections created from valid OpenAPI 3 specs?

I’m using Postman 10.22.13 on macOS, and have imported a valid OpenAPI 3 spec that includes the following required parameter shown below. It’s a GET query param of type object (`location`) that must include oneOf the listed properties (`zip` or `address`).

When I import this spec into Postman and create a collection from it, it only shows `zip` as a top-level parameter. When generating a request, `zip` is included as a top level parameter instead of a nested parameter within the `location` object.

Thank you.

```auto
{
     "schema":
     {
         "type": "object",
         "properties":
         {
             "zip":
             {
                 "type": "string",
                 "description": "Your zip code",
                 "maxLength": 5,
                 "minLength": 5
             },
             "address":
             {
                 "type": "string",
                 "description": "Your address"
             }
         },
         "oneOf":
         [
             {
                 "required":
                 [
                     "zip"
                 ]
             },
             {
                 "required":
                 [
                     "address"
                 ]
             }
         ],
         "maxProperties": 1,
         "minProperties": 1
     },
     "in": "query",
     "name": "location",
     "required": true
 }

```

---

<div class="post-metadata">

**Author:** ![gbadebo-bello](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gbadebo-bello/32/12175_2.png) [@gbadebo-bello](https://community.postman.com/u/gbadebo-bello)\
**Post date:** [February 7, 2024, 11:41am UTC](https://community.postman.com/t/support-for-requests-with-json-objects-as-query-parameters/57386/2 "2024-02-07T11:41:12Z")

</div>

Hi @gorbster. Welcome to the Postman Community.

I just tried this and experienced the same. A query in a Postman Collection URL is just an [array of key-value(string) pairs](https://learning.postman.com/collection-format/reference/url/#:~:text=https.%22%0A%20%20%20%20%20%20%20%20%7D%2C-,%22query%22%3A%20%7B,-%22type%22%3A).

Our SDK for generating a collection from an OpenAPI definition is [Open Source on Github](https://github.com/postmanlabs/openapi-to-postman). Can you please raise this as [an issue](https://github.com/postmanlabs/openapi-to-postman/issues) on that repo?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [February 15, 2024, 8:45pm UTC](https://community.postman.com/t/support-for-requests-with-json-objects-as-query-parameters/57386/3 "2024-02-15T20:45:55Z")

</div>

Closed on February 15, 2024, 8:45pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
