-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Closed
Labels
re-use: traits/mergesSelective or modified re-useSelective or modified re-use
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.
yaroslawww, BewhiskeredBard, jchook, kedod, CamilYed and 129 moretmtron, Otard95, kaznovac, tastensolo, melicheradam and 3 moreown-green
Metadata
Metadata
Assignees
Labels
re-use: traits/mergesSelective or modified re-useSelective or modified re-use