OpenAPITools / OpenAPITools/openapi-generator

java-camel server generator generates the @Component annotation by default

Open
#12,454 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

This isn't a bug necessarily, but it would be great if we could make this configurable, then the generated routes can be used in applications that are built with other frameworks too :) I might be missing something here, please let me know if I am. Thanks!

https://github.com/OpenAPITools/openapi-generator/blob/96dd6c580674269e004a2ca840eea62873db880f/modules/openapi-generator/src/main/resources/java-camel-server/api.mustache#L15

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 reading modules/openapi-generator/src/main/resources/java-camel-server/api.mustache at the referenced annotation. Trace how generator options reach this template and identify the existing generated-output tests, if any. Done means the @Component annotation can be configured and generated routes work for applications using other frameworks.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.