Skip to content

Question - Filter by path & methods #70

Description

@thim81

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions