swagger-api / swagger-api/swagger-codegen
[R] NAMESPACE missing Api/client classes
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
A client cannot use the R library in it's current form, as it does not export ApiClient, or *Api, e.g. PetApi classes in the NAMESPACE file.
Swagger-codegen version
2.4.0-20180821.200234-311 - likely not a regression (just a bug)
Swagger declaration file content or url
Any API file, e.g. petstore
Command line used for generation
java -jar swagger-codegen-cli-2.4.0-20180821.200234-311.jar generate --lang r -i swagger.yaml
Steps to reproduce
cat NAMESPACE
-> missing export(ApiClient), export(PetApi)
Related issues/PRs
https://github.com/swagger-api/swagger-codegen/issues/6520
Suggest a fix/enhancement
export those classes
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
Reproduce the issue with the provided swagger-codegen command and an API such as Petstore, then inspect the generated NAMESPACE file. Confirm that ApiClient and generated *Api classes such as PetApi are missing exports; done means the generated NAMESPACE includes exports for these classes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100