Open
Description
Hello there, I got a small question about the compoments[parameter]
Currently, im trying to make some parameters reusable and the basic seems pretty simple.
#
openapi: 3.0.1
info:
title: An include file to define common parameters
version: 1.0.0
paths:
/test:
get:
...
parameters:
- $ref: 'parameters.yml#/components/parameters/reusableParam'
...
components:
parameters:
reusableParam:
in: query
name: reusableParam
description: filter something
schema:
type: number
default: 30
Now my question is, how can I avoid to duplicate the reusableParam
if another path might need the same one but maybe with required: true
or different default: 50
what would be the "correct" way to do it?
Thank you in advance.