Is it possible to use schema in response without using oneOf? #527
rodrigosarri
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, I hope my message finds you all well! I'm building Swagger for a project and would like to "shape" the data in the response to display to the user. However, when trying to configure the Schema according to the image, the only way that worked was using the oneOf item and in addition, the display is a little misconfigured when I look at the Swagger documentation present in swagger.io, it is not necessary to use this item.
Could someone please send me an example (if possible) of how to configure the Swagger in the response without using this item.
Thanks in advance for any help.
Beta Was this translation helpful? Give feedback.
All reactions