OpenAPITools / OpenAPITools/openapi-generator

[REQ] Feature Request Add @Operation/@ApiResponse etc to generated code for java-helidon-server

Open
#20,114 0 comments 0 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.

Currently I am using the java-helidon-server with Helidon MP 4.1.4 OpenApi-Generator, from the helidon-petclinic. I can get it to generate but it does not generate @Operation/@ApiResponse annotations based from the openapi.yml. Currently it just annotates Api with @Path,@Consumes/Produces, and Http Methods

Describe the solution you'd like

It would be nice to for it to generate @Operation/@ApiResponse annotations for the Rest Endpoint it generate

Describe alternatives you've considered

N/A

Additional context

N/A

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 java-helidon-server generator and the helidon-petclinic openapi.yml example; inspect how generated APIs currently receive @Path, @Consumes/@Produces, and HTTP-method annotations. Reproduce generation with Helidon MP 4.1.4 and compare the output with the OpenAPI operations and responses. Done means generated endpoints include the requested @Operation and @ApiResponse annotations with regression coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, openapi
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.