Our November 30, 2026 run installed OpenAPI Generator’s dynamic HTML documentation sample in 7 seconds and recorded 29 npm advisories. Use OpenAPI Generator when you need several output targets and can maintain generated code and templates. Skip its npm route when your workflow must run without Java: the official homepage describes a wrapper around the JAR, and the README specifies Java 11 as the minimum JAR runtime.
The adoption decision is how much SDK engineering your team wants to own. An SDK is the client library developers use to call your API. Generating its files is one task; maintaining imports, model behavior, templates and releases is another. The issue reports below give concrete examples of that work, including successful local changes and a user’s decision to return to an older generator version.
What people use openapi-generator for
OpenAPI Generator produces clients, server stubs and documentation from an OpenAPI description. An OpenAPI document describes endpoints, request fields and responses in a machine-readable format. The official catalogue includes Java, Go, Python and several TypeScript clients, alongside Spring and other server generators. The upstream README labels OpenAPI 3.1 support beta, so specification version belongs beside the selected output target in an adoption decision.
Developers use the project for shared-schema clients, customized Spring models and reactive server interfaces. Mustache templates are text files with placeholders and conditions that determine generated code. The homepage says each client supports different options and features and that its templates can be replaced. These attributed examples show why a team might choose that control, as well as the maintenance work users described.
| Person and task | Reported outcome |
|---|---|
| gerardbosch, Java inheritance through the Gradle plugin | In issue #3100, gerardbosch said they would return to 3.3.4 because they relied on Java inheritance. |
| daberni and their team, model presence and nullability | In issue #14765, daberni described satisfaction with customized Mustache templates and repeatedly reintegrating upstream changes. |
| adamdecaf, shared schemas across specifications | In issue #2701, adamdecaf reported sharing a file across specifications without duplicate models. The report identifies 4.2.3 and moov-io/go-client; a later comment mentions 4.3.x. |
| erohana, reactive Spring return types | In issue #1309, erohana reported solving the return-type problem with local Mustache templates. |
| lacksfish, preprocessing references | In issue #2845, lacksfish reported generating client code after dereferencing the specification with json-schema-ref-parser. |
What happened when we ran it
Our sandbox installed the dynamic HTML sample in 7 seconds, recording 77 dependencies and 6 MB on disk. The run used commit 5e098ca on November 30, 2026. Its recorded configuration listed 3 CPUs, 8 GB RAM and image lab-node:22. The selected directory was ./samples/documentation/dynamic-html/, which explains why the dependency-install result belongs to a documentation sample rather than an installed generator distribution.
The separate deployment attempt stopped at the safety step with “compose config unreadable or has no services”. Its run summary described Docker Compose deployment with ports bound to 127.0.0.1, but the failed step is the recorded operational outcome. Teardown reported success after that stop. The table keeps the successful installation, skipped steps and failed deployment together so the outcomes are easy to distinguish.
| Recorded check | Answer | Verdict | Why |
|---|---|---|---|
| Did the sample install? | 7 seconds; 77 dependencies; 6 MB on disk | Succeeded | The harness recorded a successful npm install. |
| Did the sample build? | No build script or target | Skipped | The harness skipped the build step. |
| Did tests run? | No tests script or target | Skipped | The harness skipped the test step. |
| What did npm audit report? | 29 known vulnerabilities: 4 critical, 19 high, 1 moderate, 5 low | Advisories recorded | These counts came from the sample dependency installation. |
| How large was the checkout? | 73,469 files; approximately 6,076,117 source lines; 356.3 MB | Checkout measured | These figures describe the repository checkout. |
| What repository signals appeared? | 117 CI workflow files; no Dockerfile or tests directory detected | Scanner result | The scanner recorded those signals. |
| Did Compose deployment complete? | “compose config unreadable or has no services” | Failed safety step | The attempt stopped at the recorded safety check. |
| Did cleanup complete? | “teardown: ok” | Reported success | The teardown record followed the stopped attempt. |
Where people get stuck: schema meaning and generated types
Issue #10010 reports missing Java fields when a response combines multiple objects through allOf, while other threads describe extra classes and duplicate references. Those symptoms call for different investigations. In issue #2845, a maintainer explains composition and points to the discriminator field, which identifies model variants. Start with the observed output and the input schema rather than treating every allOf report as the same defect.
| Symptom and report | Reported response | Concrete outcome |
|---|---|---|
| Extra AllOf classes in issue #3100 | A maintainer suggested ignoring generated files. | A .NET user reported success; papegaaij said deleting the Java classes broke the build because imports referenced them. |
| Flattened inheritance in issue #2845 | A maintainer suggested a discriminator; lacksfish dereferenced the input. | lacksfish reported successful client generation and called the approach a hotfix. |
| Missing Java fields in issue #10010 | Participants edited specifications. | A participant explicitly reported that a restructuring still failed for Java. |
| Duplicate numbered models in issue #2701 | binaryunary described inconsistent relative reference paths. | Prefixing paths with ./ solved that participant’s normalization case. |
| Presence and nullability in issue #14765 | daberni’s team changed Mustache templates. | The team reported satisfaction and recurring upstream merge work. |
The Java objection in issue #3100 gives a useful troubleshooting rule: inspect references before excluding generated classes. An unused import still named the deleted class and broke the build in that report. A proposed adoption check is to keep a small schema containing your required composition and cross-file references, then compare the generated types and serialized JSON with the application’s expected behavior.
Spring compatibility depends on the generator and library
Issue #22294 distinguishes the spring generator from Java client libraries in its Jackson 3 discussion. OrangeDog reported Jackson 2 imports from a Java/resttemplate configuration, and antechrestos replied that support at that point was available only for the spring generator. The generator name, client library and framework version therefore belong together when reading that thread’s examples or choosing an upgrade path.
The 7.28.0 release notes list Jackson 3 support for Java MicroProfile and useJackson3 support for Kotlin’s jvm-spring-webclient library. Those library-specific changes update the historical “spring only” answer. In the same issue, paul-kraftlauget says the custom WebClient example targeted Spring Boot 4.0.0-M3 and that package names changed before the final release. For that custom template, the author placed useJackson3 in additionalProperties rather than configOptions.
For a generated Spring server returning 404, Widowan’s troubleshooting gist points to component scanning and package placement. It recommends placing the generated controller package within the application’s scan hierarchy or including it explicitly. The gist also discusses competing generated and existing Spring Boot application classes. Its interfaceOnly suggestion applies when delegatePattern is not being used, making those two settings relevant to the proposed remedy.
Template control creates recurring upgrade work
Daberni’s team in issue #14765 changed Mustache templates and described repeatedly merging upstream changes. That report connects customization to an identifiable maintenance task. Before choosing a template override, identify which generated behavior requires it and who will reconcile that file with later upstream versions. Package names and available generator options may cover some conventions; a maintained template fork becomes relevant when those settings do not express the required output.
The thread discusses property presence for PATCH requests, where omission and explicit null can have different meanings. Participants debate how required, nullable, Optional and JsonNullable should interact. A proposed acceptance example should include an absent property, a property containing null and a property containing a value, with the expected endpoint behavior recorded beside each input. This makes the template’s purpose concrete when reviewing a later generated diff.
Security: read the sample audit in context
Our sample’s npm audit recorded 29 known vulnerabilities: 4 critical, 19 high, 1 moderate and 5 low. The dependency directory measured 6 MB and belonged to the dynamic HTML sample. Keep those figures attached to that installation when deciding whether to reuse the sample. Dependency-path inspection and the way its output will be served are the next practical questions for that particular documentation workflow.
The upstream README warns that untrusted specifications, templates, options and environment variables can introduce security issues, including code injection. The CLI documentation also says additional properties can be referenced by Mustache templates. Review those inputs as part of code generation, keep credentials out of template values, and choose an output directory whose changes can be inspected before incorporating the generated files into an application.
OpenAPI Generator vs Speakeasy, Scalar and Apidog
OpenAPI Generator documents local template replacement, while the Speakeasy and Scalar comparisons describe managed publishing workflows. Apidog’s tutorial presents API design and testing as complementary work. These descriptions help frame an ownership decision: which files and release tasks will your team maintain, and which tasks would a service handle? Compare that division of work against the languages and server outputs your application actually requires.
| Candidate | Source description | When to shortlist it |
|---|---|---|
| OpenAPI Generator | The official homepage documents replaceable templates and client, server and documentation generation. | Your team needs its output targets and wants control over generated structure. |
| Speakeasy | The OpenAPISDK comparison describes automated package submissions and release notes for Speakeasy. | Managed SDK publication is a task you want to evaluate handing over. |
| Scalar | Scalar describes its product as managed SDK generation with publishing included. | You want to compare managed releases with maintaining templates and publication yourself. |
| Apidog | Apidog’s tutorial presents design, documentation and testing features as complementary to OpenAPI Generator. | API design or endpoint testing is the missing part of your workflow. |
Scalar’s page identifies its own authorship, and its concrete retry and pagination criticism names the typescript-fetch runtime. Keep that library name attached to the comparison. For each candidate, write down the owner of authentication behavior, retries, package releases and template updates. A service’s publication workflow is useful only alongside the output targets your team needs; OpenAPI Generator’s template control likewise comes with responsibility for the resulting files.
Outdated claims, corrected
The fresh official plugin documentation uses Maven plugin version 7.28.0, while its Gradle dependency example still uses 6.6.0. The current Maven example declares version 7.28.0, matching the upstream README’s stable release listing dated November 26, 2026. The earlier captured Maven example used 7.24.0. That older capture should not be described as the current documentation, and the separately dated 3.3.2 artifact directory is historical.
The maoyama repository is a third-party fork whose captured README lists 7.10.0 as stable; upstream lists 7.28.0. The Swift guidance also conflicts: the older FAQ recommends swift5, while the current generator catalogue marks swift5 deprecated and lists swift6. These are different freshness problems, so follow upstream’s release listing for the version and the target catalogue for the generator’s current status.
Apidog’s tutorial calls html output interactive, but the official homepage describes HTML and Cwiki as static documentation. Its “Node.js or Java” prerequisite wording also needs the npm wrapper’s Java requirement. Finally, its “previously known as Swagger Codegen” wording compresses a fork into a rename: Scalar’s comparison describes a fork from Swagger Codegen 2.4.0-SNAPSHOT. These corrections concern the named pages’ descriptions and preserve the distinction between project history and current output behavior.
FAQ
The Maven plugin’s documented default phase is generate-sources, and its fresh example uses version 7.28.0. The questions below cover Maven and npm setup, Gradle task ordering, framework compatibility and the schema problems raised in issue discussions. Configuration examples describe different generators and dates, so read the generator name and selected library alongside the version rather than copying a framework setting into every output target.
How do I configure openapi-generator-maven-plugin in Maven?
The official example places org.openapitools:openapi-generator-maven-plugin under build/plugins, declares version 7.28.0 and attaches the generate goal. Its configuration sets inputSpec and generatorName, then places sourceFolder under configOptions. The plugin documentation follows that declaration with mvn clean compile. This example selects the java generator; choose the output target that matches your application and keep that selection with the input specification in version control.
What is the latest stable OpenAPI Generator Maven plugin version, and which examples are outdated?
The upstream README lists 7.28.0 as stable on November 30, 2026, and the fresh Maven plugin example also uses 7.28.0. The same plugin page’s Gradle dependency example uses 6.6.0. The earlier research capture contained Maven 7.24.0, while the README identifies 7.29.0 as an upcoming snapshot. Those references answer different questions: current stable release, current example, older captured example and development snapshot.
Does openapi-generator-maven-plugin support Spring Boot 4 and Jackson 3 for my generator and library?
The 7.28.0 release notes name Jackson 3 changes for Java MicroProfile and Kotlin’s jvm-spring-webclient library. Issue #22294 records different spring and Java client configurations, including a custom WebClient template written for Spring Boot 4.0.0-M3. Identify your generator and library first, then compare the relevant release notes and emitted imports with your application’s dependencies. The Maven plugin name alone does not identify which code generator produces those imports.
How do I install openapi-generator-cli through npm and pin the generator version?
The homepage documents npm install @openapitools/openapi-generator-cli -D and openapi-generator-cli version-manager set 7.28.0. The README says the npm wrapper still requires a JVM, and its JAR instructions specify Java 11 as the minimum runtime. Keep both the wrapper dependency and selected generator version recorded with your build configuration so a change to either has a visible place in review.
How do I configure the Gradle plugin and make compilation depend on generated sources?
The Gradle documentation uses compileJava.dependsOn tasks.named("openApiGenerate") to declare the generation task dependency. Its openApiGenerate example sets generatorName, inputSpec, outputDir and package names. The example generates a Kotlin client, while the compileJava dependency demonstrates task ordering. Choose the generator and output location for your build, and connect that output to the project’s generated-source configuration as part of the integration.
How can I discover the valid options and defaults for a particular generator?
The CLI’s config-help command displays generator-specific options; the documented example is openapi-generator-cli config-help -g go. The usage guide also documents --feature-set, --full-details and mapping-related help flags. Read this help from the generator version your build selects. The guide distinguishes choosing a generator with -g, choosing an input with -i and choosing an output directory with -o, whose default is the current directory.
How do I prevent duplicate models when using external or cyclic references?
Binaryunary’s report in issue #2701 traces one duplicate-model case to inconsistent relative paths and says prefixing paths with ./ solved it. Adamdecaf’s successful shared-file example explicitly had no cyclic dependencies. Preserve your actual reference graph in a small reproduction, including cycles when present, and compare the numbered model names with the paths that introduced them. That gives the investigation a concrete input rather than only the resulting duplicate filenames.
How should required, nullable and JsonNullable interact for PATCH requests?
Issue #14765 discusses distinguishing an absent property from explicit null and records a team’s customized templates for its chosen behavior. Daberni reports satisfaction with that approach and recurring upstream reintegration. Define what omission, null and a value mean for your endpoint before choosing the generated representation. Keep those three cases beside the template configuration so the intended API behavior is visible during an upgrade review.
What we have not tested yet
The November 30 run covered dependency installation for one documentation sample; generator installation, SDK generation, target-language compilation and runtime behavior were outside that run. The Compose safety failure supplied no usable-service result. The checkout commit 5e098ca identifies the measured files, rather than an installed 7.28.0 CLI. The image label records configuration rather than actual runtime or operating-system versions, and scanner detections do not prove repository-wide absence of tests or container files.
The historical schema workarounds and Spring examples have not been reproduced here on 7.28.0, and there is no tested Spring Boot 4/Jackson 3 matrix across generators and libraries. The reports support attributed troubleshooting cases, rather than universal fixes, current failure rates or a consensus nullability mapping. Template-upgrade cost, generation speed, engineering-hours savings, production support quality and comparative alternative performance also lack measurements. All four editorial score dimensions therefore remain unassessed.
The npm audit counts lack affected-package and reachability details and do not identify vulnerabilities in every generated client or the Java CLI. Commercial comparison statements describe their authors’ positioning rather than our comparative results. Four YouTube records had empty transcripts, and the Bilibili listing contained titles and plays rather than a demonstrated workflow. Rendered layout, resolved evidence links, recommendation modules and template behavior were also outside this text review.
The next useful check is one representative contract taken through generation, compilation and an application request that exercises its hardest model. Include absent and null PATCH properties where the endpoint distinguishes them, along with cross-file references and composition used by the application. Keep the generator version, configuration and expected output together. This proposed acceptance check gives the next upgrade a concrete comparison without presenting it as a completed test.


