You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
OpenAPI 3.1 allows for discriminator: https://spec.openapis.org/oas/latest.html#discriminator-object
We considered this approach and may implement discriminators in the future. It's somewhat problematic given most of the fields we'd discriminate against are int enums, and the mapping keys are strings.
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: