icerockdev / moko-network

Network components with codegeneration of rest api for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev
Apache License 2.0
151 stars 29 forks source link

Filtering path operations by tags #49

Closed Tetraquark closed 3 years ago

Tetraquark commented 3 years ago

Need to implement filtration path operations by tags.

For example I have this path:

  '/api/request':
    get:
      operationId: api_request_get
      description: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
      tags:
        - api
    delete:
      operationId: api_request_delete
      description: ''
      responses:
        '204':
          description: ''
      tags:
        - internal
        - api

And sometimes I need generate api without operations with tag internal. In this example, I don't need delete method in the api class, so I want to filter it by the internal tag

Alex009 commented 3 years ago

duplicate of #46