-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add identifier for oneOf [...] operation responses #17
Comments
There is already a standard way to do this in OpenAPI 3 using the descriminator property of a schema |
That's not in OpenAPI 3.1 though? And can't the descriminator just be calculated by the thing going from specification -> deserialization code? |
OpenAPI 3.1 allows for discriminator: https://spec.openapis.org/oas/latest.html#discriminator-object |
Add a way to identify the Schema of operation responses. For example the
get_channel
operation, when successfull, can return 1 of 4 different schemas.If you take a look at the schemas you see, that they can be identified by the
type
property, but there is no convinient way (at least I dont see any) to get this parameter from the response field of an operation.Maybe add a
identifiedBy
field to the response content.The text was updated successfully, but these errors were encountered: