Closed uroslates closed 6 days ago
Hi @uroslates ,
We fixed this issue in the latest release. Can you try generating after updating the version?
Hi @deekshas8,
Thank you for the quick reply. I can confirm that this issue does not exist in the latest release and the generation output is the array of the union type as expected.
Describe the bug There is a type generation error when generating ab array of oneOf types.
To Reproduce
E.g. when generating the type for an object of this shape:
the generated output is the following:
Expected behavior
In the generated schema example from above we see that only last union type (
AddShippingAddress[]
) is marked as array. The expected behaviour is that entire union is marked as array! Example: