OpenAPITools / OpenAPITools/openapi-generator

[REQ] openapi-generator-cli as GraalVM native image

Open
#21,998 1 comment 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

Problem

I want to use openapi-generator-cli to generate code in different projects in a different languages like go, rust etc.
But it requires to install java or use it as docker image (big image size), which is a java specific approach.

Desired feature

Can we build and publish openapi-generator-cli as GraalVM native-image that can be tech agnostic binary and can be used on any platform without dependency to java or nodejs and same for docker image build it as native image in that case it will be smaller size and instant startup time and we can reduce docker image download time, similar to mvnd or Kafka native docker image.

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 reviewing the openapi-generator-cli packaging and the repository's current Java and Docker distribution approach, then check GraalVM native-image compatibility. Define what is required for a published native binary and smaller Docker image, including supported platforms and removal of Java or Node.js runtime dependencies. Done means the native CLI and corresponding image can be built and published with equivalent generator use.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.