Skip to content

Commit b1b4c47

Browse files
committed
fixed erros on startup templates
1 parent dd6b4ad commit b1b4c47

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/swagger-codegen/src/main/resources/aspnetcore/3.0/Startup.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ namespace {{packageName}}
8989
Name = "{{#infoName}}{{{infoName}}}{{/infoName}}{{^infoName}}Swagger Codegen Contributors{{/infoName}}",
9090
Url = new Uri("{{#infoUrl}}{{{infoUrl}}}{{/infoUrl}}{{^infoUrl}}https://github.com/swagger-api/swagger-codegen{{/infoUrl}}"),
9191
Email = "{{#infoEmail}}{{{infoEmail}}}{{/infoEmail}}"
92-
}{{#termsOfService}}{,
93-
TermsOfService = new Uri("{{termsOfService}}")}{{/termsOfService}}
92+
},{{#termsOfService}}
93+
TermsOfService = "{{termsOfService}}"{{/termsOfService}}
9494
});
9595
c.CustomSchemaIds(type => type.FullName);
9696
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{_hostingEnv.ApplicationName}.xml");

modules/swagger-codegen/src/main/resources/aspnetcore/Startup.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ namespace {{packageName}}
8686
Name = "{{#infoName}}{{{infoName}}}{{/infoName}}{{^infoName}}Swagger Codegen Contributors{{/infoName}}",
8787
Url = "{{#infoUrl}}{{{infoUrl}}}{{/infoUrl}}{{^infoUrl}}https://github.com/swagger-api/swagger-codegen{{/infoUrl}}",
8888
Email = "{{#infoEmail}}{{{infoEmail}}}{{/infoEmail}}"
89-
}{{#termsOfService}}{,
90-
TermsOfService = "{{termsOfService}}"}{{/termsOfService}}
89+
},
90+
TermsOfService = "{{#termsOfService}}{{{termsOfService}}}{{/termsOfService}}"
9191
});
9292
c.CustomSchemaIds(type => type.FriendlyId(true));
9393
c.DescribeAllEnumsAsStrings();

0 commit comments

Comments
 (0)