query parameter will trigger additional JSON field in my response
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2023
12:09 PM
03-29-2023
12:09 PM
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?
Labels:
- Labels:
-
Swagger Codegen
-
Swagger Core
0 REPLIES 0
