-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
Milestone
Description
Description
When using the aspnet5 generator, the sourceFolder option is ignored an the source folder is always set to src/IO.Swagger.
Swagger-codegen version
Latest master (b782dc0)
Steps to reproduce
Run the aspnet5 generator with the option "-DsourceFolder=..." or in the configuration json given to the command. The path given to the sourceFolder option is ignored and the resulting output will always have a directory structure with the default path of "src/IO.Swagger".
Suggested Fix
The culprit looks to be the redefinition of the protected string sourceFolder in AspNet5ServerCodegen.java. This hides the previous definition of sourceFolder AbstractCSharpCodegen.java. Moving the initialization of sourceFolder to the constructor of the AspNet5ServerCodegen class seems to resolve the issue for me.
Reactions are currently unavailable