Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Reusable groups of parameters for operations #2871

Closed
jmcanterafonseca-iota opened this issue Jan 31, 2022 · 1 comment
Closed

Comments

@jmcanterafonseca-iota
Copy link

Rationale:

There can be situations where a group of parameters is needed for multiple operations. Currently you can reuse the definitions by enumerating them by using the $ref construct.

parameters:
  - $ref: '#/components/parameters/p1'
  - $ref: '#/components/parameters/p2'

but you would need to duplicate the same enumeration across all the operations where the same parameter group is required.

A possible solution would be to allow the parameters element to be able to point to another JSON element that contain the parameters enumeration, for instance one operation can declare that its parameters are just the same as another operation, see below

   parameters:
      $ref: '#/paths/%2Fanotheroperation/parameters' 
@webron
Copy link
Member

webron commented Jan 31, 2022

Closing in favor of OAI/Overlay-Specification#34.

@webron webron closed this as completed Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants