swagger-api / swagger-api/swagger-codegen
Missing OpenAPI input
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Using this command:
java -jar swagger-codegen-cli-3.0.28.jar generate -i https://app.vindi.com.br/api/v1/docs -l csharp -o chsarp_client -c config.json
Config file:
{
"packageGuid": "7b60b737-097c-4cac-91ee-2e241468029b",
"packageName": "GuruMatchSdk.Billing.Vindi",
"netCoreProjectFile" : true
}
Error:
12:42:50.898 [Thread-1] INFO i.s.c.v.i.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found.
Exception in thread "Thread-1" java.lang.RuntimeException: missing OpenAPI input!
at io.swagger.codegen.v3.DefaultGenerator.generate(DefaultGenerator.java:768)
at io.swagger.codegen.v3.cli.cmd.Generate.run(Generate.java:388)
at java.lang.Thread.run(Unknown Source)
Using the validator on "https://validator.swagger.io/" to check the schemas looks like it has errors, is there a way to solve it?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the command with the Vindi URL, config.json, and swagger-codegen-cli-3.0.28. Read the stack-trace locations DefaultGenerator.java:768 and Generate.java:388, then compare the URL's response with the validator output; done means identifying whether the input is invalid or unsupported and documenting the required correction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, java, openapi
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100