swagger-codegen
swagger-codegen copied to clipboard
[CSHARP] test project is generated in default sourceFolder even when sourceFolder is set
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:
- create
config.json - set
sourceFolderto something other than the default value ofsrc. - 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
- https://github.com/swagger-api/swagger-codegen/pull/12432
Suggest a fix/enhancement
- Add support for
testFolder, as per this.
@mandrean as per the PR checklist, could you please take a look at PR #12432 ? Thanks!
Can anyone take a look at this issue? This is a bug report that already has a PR with a bugfix.
@ruimaciel really appreciate the work you’ve put into this. Fix will be provided in #12563