Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CSHARP] test project is generated in default sourceFolder even when sourceFolder is set #12431

Open
ruimaciel opened this issue Jul 28, 2024 · 1 comment · May be fixed by #12432
Open

[CSHARP] test project is generated in default sourceFolder even when sourceFolder is set #12431

ruimaciel opened this issue Jul 28, 2024 · 1 comment · May be fixed by #12432

Comments

@ruimaciel
Copy link

ruimaciel commented Jul 28, 2024

Description

When creating a C# client with swagger-codegen-cli, if the user passes a config file with sourceFolder to any path other than the default then swagger-codegen-cli still outputs the test subproject to ./src.

Swagger-codegen version

3.0.57

Swagger declaration file content or url

N/A

Command line used for generation
{
    "sourceFolder":  "FooBar"
}
java -jar swagger-codegen-cli-3.0.57.jar generate -i ${OPENAPI_SPEC} \
	-l csharp \
	-c config.json 
Steps to reproduce

How to reproduce:

  1. create config.json
  2. set sourceFolder to something other than the default value of src.
  3. run swagger-codegen-cli with the config

Expected result:

  • store the test subproject alongside the client project (i.e., comply with sourceFolder, as per this)

Actual result:

  • the test subproject is outputted to ./src.
Related issues/PRs
Suggest a fix/enhancement
  • Add support for testFolder, as per this.
@ruimaciel
Copy link
Author

@mandrean as per the PR checklist, could you please take a look at PR #12432 ? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant