Hello,
I need some help on mixed type array with array of objects in path location. I have defined following schema in yaml file
openapi: 3.0.3info:
title: APIversion: 1.0.0paths:
"/{param1}":
get:
parameters:
- name: param1in: pathrequired: truestyle: labelexplode: falseschema:
type: arrayitems:
oneOf:
- $ref: "#/components/schemas/PetByAge"
- $ref: "#/components/schemas/PetByType"example:
- age: 10nickname: john
- pet_type: sthhunts: falseresponses:
"200":
description: OKcomponents:
schemas:
PetByAge:
type: objectproperties:
age:
type: integernickname:
type: stringPetByType:
type: objectproperties:
pet_type:
type: stringhunts:
type: booleanI used swagger editor to get request URL (GET operation) containing parameter in path location, swagger generated request URL which looks not meaningful and confusing as it contains string "[object]" as a parameter i.e http://10.240.185.191/path/.[object Object].[object Object]
can someone let me know how array of object parameters would be serialized in path location (i.e in URL) in request, so that I can deserialize at server side

Hello,
I need some help on mixed type array with array of objects in path location. I have defined following schema in yaml file
I used swagger editor to get request URL (GET operation) containing parameter in path location, swagger generated request URL which looks not meaningful and confusing as it contains string "[object]" as a parameter i.e http://10.240.185.191/path/.[object Object].[object Object]
can someone let me know how array of object parameters would be serialized in path location (i.e in URL) in request, so that I can deserialize at server side
