-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Open
Description
Q | A |
---|---|
Bug or feature request? | Bug |
Which Swagger/OpenAPI version? | |
Which Swagger-UI version? | |
How did you install Swagger-UI? | |
Which browser & version? | |
Which operating system? |
Demonstration API definition
responses:
'200':
description: OK
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/AuthorisationResponse'
- $ref: '#/components/schemas/ForbiddenResponse'
Configuration (browser query string, constructor, config.yaml)
constructorConfig contains just the default values.
Expected Behavior
Since I have two schemas passed in as a $ref to the 200 response I would expect to see two schemas in the Swagger UI application.
Current Behavior
Instead I see only the reference to the 200 response and its description with no example responses displayed as JSON in the black boxes.
Possible Solution
Context
AlexNik, Oleg-Arkhipov, btkelly, tautvydasr, crussell52 and 384 moregubenkoved and simionimathis-m, JethroMV, yagami271, hylkealons, Type1J and 8 moregubenkoved and simioniJethroMV, Senci, yagami271, leandroschmitt, by-Exist and 6 more