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

Allow extending of parameters (at least renaming them) #3003

Closed
kaznovac opened this issue Aug 18, 2022 · 3 comments
Closed

Allow extending of parameters (at least renaming them) #3003

kaznovac opened this issue Aug 18, 2022 · 3 comments

Comments

@kaznovac
Copy link

assume schema has this paths:

  • /store
  • /store/{store_id}
  • /store/{store_id}/offers
  • /store/{store_id}/offers/{offer_id}

and the {store_id} and {offer_id} are id's that are generated in the same manner (e.g. string($uuid))

it would be beneficial if pathId schema could be defined in the components/parameters

    "parameters": {
      "pathId": {
        "name": "id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid"
        },
        "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      }
    }

and then later reused for the parameter definition in the paths section

@hkosova
Copy link
Contributor

hkosova commented Aug 19, 2022

Related (or duplicate of): #2026

@kaznovac
Copy link
Author

Duplicate of #2026

thanks @hkosova this is subset of the mentioned issue

@kaznovac
Copy link
Author

sibling to #2498

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