swagger-api / swagger-api/swagger-codegen
No JSON output module?
Open
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
Attempting to out put JSON from YAML source:
swagger-codegen generate -i v2.yaml -l json
Error: Exception in thread "main" java.lang.RuntimeException: Can't load config class with name json
HTML output works fine
Swagger-codegen version
Version 3.0.4
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 swagger-codegen generate -i v2.yaml -l json against version 3.0.4 and compare it with the working HTML output. Trace how generator names are loaded and determine what is needed for a JSON output module; done means the command accepts -l json and produces the expected JSON output from the YAML source.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100