Closed
Description
Is your feature request related to a problem? Please describe.
When an endpoint returns oneOf
several different classes, currently it returns an empty object. Sample component snippet:
ReturnedObject:
oneOf:
- $ref: '#/components/schemas/PolymorphicType'
- $ref: '#/components/schemas/AnotherPolymorphicType'
Describe the solution you'd like
Support discriminators to be able to deserialize polymorphic types.