I have the below openapi spec piece:
* type:
* - string
* - array
* items:
* $ref: '#/components/schemas/objectType'
I have an input which might be an empty string or an array of objects. When I generate the above model it gives me below type:
string | any[]
However, what I need is:
string | objectType[]
What am I doing wrong?