Forum Discussion

fillmore's avatar
fillmore
New Contributor
2 years ago

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?

 

No RepliesBe the first to reply