Forum Discussion
1 Reply
Sort By
- ponelatStaff
Hi ssingh137 ,
Yes it's possible to reuse schemas in Parameters.
See an example here: https://app.swaggerhub.com/apis/SwaggerPMTests/reuseable-enum/1.0.0#/default/get_foo__bar_
For more info around Path Parameters, see: https://swagger.io/docs/specification/describing-parameters/#path-parameters
Note: You cannot have sibling fields next to a $ref. In your example you have `type: string` next to a `$ref: ...` and that is invalid.
Related Content
- 5 years ago
- 3 years ago
Recent Discussions
- 4 days ago
- 26 days ago