swagger-api / swagger-api/swagger-codegen

[R] NAMESPACE missing Api/client classes

Open
#8,607 2 comments 0 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

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.