OpenAPITools / OpenAPITools/openapi-generator

[REQ] Documentation a detail about selective generation of apis

Open
#12,215 0 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

Is your feature request related to a problem? Please describe.

I tried to generate code of specific api. I found that there is no detail document about selective generation of apis and then
I read the related codes. I think that future users like me would like to found the solution about selective generation of apis only reading document. A problem is that reading codes to use tools is undesired.

Describe the solution you'd like

I read the related codes about selecting apis.

The solution I'd like is to add descriptions that users need to set tag name to apis key. (e.g. --global-property apis="Pet,User") and if possible add more description about sanitize rules of tag name.

Describe alternatives you've considered

Additional context

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 with the linked sections of DefaultGenerator.java and DefaultCodegen.java to confirm how selective API generation uses paths, operation keys, tag names, and sanitization. Update the relevant user documentation to explain setting --global-property apis="Pet,User" and, if possible, the tag-name sanitization rules; done means users can configure selective generation without reading source code.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, openapi
Domain
api, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.