OpenAPITools / OpenAPITools/openapi-generator

Question: Partial generation - can generator be configured to only generate clients for a subset of a spec?

Open
#15,109 2 comments 1 reaction 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

Hi.
Potentially a misguided question, as I could not find relevant documentation on the matter: can the generator be instrumented to only create parts of an openapi spec? e.g. based-on a tag, a url path, etc? Use-case is when one is only interested in callign one or two endpoints of an entire api, and generating the whole lot is redundant.
thank you.

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

The issue names no files, tests, or entry points. Start by checking the generator's existing configuration and filtering documentation for OpenAPI tags or URL paths. Done would require a clearly documented way to generate clients for only selected parts of a specification, if supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, openapi
Domain
api, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.