Openapi-generator: [Question | C#] How can I change the generated project name and namespace

Created on 17 May 2019  路  1Comment  路  Source: OpenAPITools/openapi-generator

Hi,

When I use the C# generator I get a project named Org.OpenAPITools.csproj and the namespace is something like Org.OpenAPITools.Model. Are there parameters I can pass to changes these values?

Thanks.

Question

Most helpful comment

Run this command and you will see what options you can pass to the generator

java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar config-help -g aspnetcore

For your case above you have to set the property packageName
while generating pass additionally these parameters

--additional-properties packageName=YourPackageName

>All comments

Run this command and you will see what options you can pass to the generator

java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar config-help -g aspnetcore

For your case above you have to set the property packageName
while generating pass additionally these parameters

--additional-properties packageName=YourPackageName
Was this page helpful?
0 / 5 - 0 ratings