Skip to content

How to represent dynamic type in response body ? #4427

Closed Answered by handrews
OldFarmer86 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, I agree with @ralfhandl . If that is not feasible, you just have to use a oneOf or anyOf schema and there's no real way to correlate the path parameter and the response type. This is something we are working to fix in OAS 4.0 a.k.a. "Moonwalk", and you can follow the discussions in the OAI/sig-moonwalk repository if you are interested.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@handrews
Comment options

Answer selected by OldFarmer86
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants