Forum Discussion
rosecharnley
2 months agoNew Contributor
Create different possible response schemas and you can use oneOf to allow for different responses. Example below, documentation here: https://support.smartbear.com/swaggerhub/faq/how-to-combine-schemas-in-openapi-specification/
oneOf:
- $ref: '#/components/schemas/objectOne'
- $ref: '#/components/schemas/objectTwo'