swagger-api / swagger-api/swagger-codegen
Swagger-codegen for Ruby doesn't work - produces invalid gem
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
- Run swagger-codegen on this JSON:
https://api.cloudmersive.com/specs/allapis.json
Expected: Generates a valid gem
Observed: Generates an invalid gem
Try running "gem push outputgem.gemspec
Resulting error:
Signed in.
ERROR: While executing gem ... (ArgumentError)
"egen htt" is not an octal string
Swagger-codegen version
2.3.1
Swagger declaration file content or url
https://api.cloudmersive.com/specs/allapis.json
Command line used for generation
Tried on both linux command line and Windows command line, exact same error produced
Steps to reproduce
See above
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
Run swagger-codegen 2.3.1 with the linked Cloudmersive specification and reproduce the gem push error on the generated gemspec. Inspect the generated gemspec and related Ruby generation output; done means the generated gem can be pushed successfully without the octal-string error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100