Ask a Question

query parameter will trigger additional JSON field in my response

fillmore
New Contributor

query parameter will trigger additional JSON field in my response

 

Hello, I have an endpoint which supports 'expanded" as a parameter. If 'expanded=true', the returned JSON object will provide more elements and each element will have additional fields that are not (yet?) documented in the schema of the component.

What's the elegant way to model this in the Openapi 3.0 YAML?

 

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: