Forum Discussion
HKosova
5 years agoSmartBear Alumni (Retired)
Hi PavZav,
Thanks for the report! The issue with oneOf/anyOf schema examples is tracked on GitHub here:
https://github.com/swagger-api/swagger-ui/issues/3803
You can subscribe to this issue to get notified when it's fixed.
As a workaround, you can specify an example for the "data" property yourself:
data: oneOf: - $ref: '#/components/schemas/obj1Item' - $ref: '#/components/schemas/obj2Item' discriminator: ... example: type: obj1 firstTypeStructure: 123
Related Content
- 2 years agoMattiasO
- 6 years agomcostantini
- 2 months agoyos123
- 2 years agojerry91
- 3 years agoCeilingFan