I am confused about how the end result of an URL looks like when using array- and object query parameters in OpenAPI specifications. I read the following documentation, but it did not make me understand it fully: https://swagger.io/docs/specification/describing-parameters/#query-parameters
What would be two examples of URLs based on (specifically) the below query parameters?
Example 1 - Arrays
{
"/pet/findByStatus": {
"get": {
"parameters": [{
"in": "query",
"name": "test",
"description": "Pet object that needs to be added to the store",
"schema": {
"type": "array",
"items": {
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"category": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
}
}
},
"name": {
"type": "string",
"example": "doggie"
},
"photoUrls": {
"type": "array",
"items": {
"type": "string"
}
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
}
}
}
},
"status": {
"type": "string",
"description": "pet status in the store",
"enum": ["available", "pending", "sold"]
}
}
}
}
}]
}
}
Example 2 - Objects
{
"/pet/findByStatus": {
"get": {
"parameters": [{
"in": "query",
"name": "test",
"description": "Pet object that needs to be added to the store",
"schema": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"category": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
}
}
},
"name": {
"type": "string",
"example": "doggie"
},
"photoUrls": {
"type": "array",
"items": {
"type": "string"
}
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
}
}
}
},
"status": {
"type": "string",
"description": "pet status in the store",
"enum": ["available", "pending", "sold"]
}
}
}
}]
}
}
Thanks!