OpenAPITools / OpenAPITools/openapi-generator

[REQ] Only generate API methods/models which are part of a certain tag.

Open
#3,376 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

I have an API which has both public and internal methods. I'd rather not expose the internal methods and endpoints on the public client.

It would be nice if you could only generate API code for methods which contain a certain tag.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the generator entry points that select API methods and models from an OpenAPI specification, then inspect how tag metadata and generator options are represented. Define the configuration and filtering behavior before identifying the relevant generator tests; done means tagged operations and their required models are generated while untagged internal endpoints are omitted.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, openapi
Domain
api, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.