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

Question - Filter by path & methods #70

Open
thim81 opened this issue Jan 9, 2021 · 1 comment
Open

Question - Filter by path & methods #70

thim81 opened this issue Jan 9, 2021 · 1 comment

Comments

@thim81
Copy link
Contributor

thim81 commented Jan 9, 2021

I was wondering if it would be possible to filter out specific "path" methods using the tags options.

Example

paths:
  /pet:
    post:
      tags:
        - pet
      summary: Add a new pet to the store
      description: ""
      operationId: addPet
      responses:
        "405":
          description: Invalid input
      security:
        - petstore_auth:
            - write:pets
            - read:pets
      requestBody:
        $ref: "#/components/requestBodies/Pet"
    put:
      tags:
        - pet
      summary: Update an existing pet
      description: ""
      operationId: updatePet
      responses:
        "400":
          description: Invalid ID supplied
        "404":
          description: Pet not found
        "405":
          description: Validation exception
      security:
        - petstore_auth:
            - write:pets
            - read:pets
      requestBody:
        $ref: "#/components/requestBodies/Pet"

I want to filter out the /pet but on the the PUT.

The only option that I have right now, is to add a specific flag (like x-visibility) to the put method .
Or is there an option to specific target a path & method?

if there is not, I'll try to create a PR to support this filtering option.

@MikeRalphson
Copy link
Contributor

Filtering by operationId would be a useful additional feature certainly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants