swagger-api / swagger-api/swagger-codegen-generators

Micronaut code generator from swagger file has some issues

Open
#800 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
299
Forks
439
PR merge metrics
No merged PRs in 30d

Description

Below issues are seen in the generated micronaut code from petstore swagger file
1.) a double comma: ,,
2.) Authorization, AuthorizationScope, MultipartFile and required are not imported
due to these issues, i am not able run the generated micronaut code using the MainApplication class.
Attaching the screenshots

image

image

i have followed the ref: https://github.com/franz-see/swagger-codegen-micronaut-generator for generating the micronaut code from swagger file. is there any other way to follow for generating the micronaut code from swagger file, if so please let me know.
Can someone help me to resolve these issues?

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 petstore Swagger input and the generated Micronaut output shown in the issue, then compare the approach with the referenced franz-see/swagger-codegen-micronaut-generator project. Reproduce the double comma and missing imports before locating the generator entry point; done means the generated project runs through MainApplication without these errors.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.