swagger-api / swagger-api/swagger-codegen

Unable to work with Retrofit2 in 3.0.3 formula

Open
#9,070 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I am unable to write exception since i found a workaround solution but it was throwing handlebar exception in api_test_mustace for retrofit2
screen shot 2019-01-29 at 12 23 07

Code that i ran;

brew install swagger-codegen

swagger-codegen generate -i http://178.211.54.214:5000/swagger/v1/swagger.json -l java -Dmodels,apis --library retrofit2

I workaround with install lastest version.

brew install swagger-codegen --HEAD

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 running the provided swagger-codegen command with --library retrofit2 against the linked Swagger URL, using version 3.0.3 and then --HEAD. Inspect the generated API tests around api_test_mustace and the reported handlebar exception; done means the Retrofit2 generation no longer produces that failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.