From 874a5d5c9edfe9330efa4922866c3c2400affad5 Mon Sep 17 00:00:00 2001 From: Brady Gaster Date: Thu, 30 Apr 2020 00:37:53 -0700 Subject: [PATCH] fixed issued with TermsOfService --- .../src/main/resources/aspnetcore/3.0/Startup.mustache | 4 ++-- .../src/main/resources/aspnetcore/Startup.mustache | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/aspnetcore/3.0/Startup.mustache b/modules/swagger-codegen/src/main/resources/aspnetcore/3.0/Startup.mustache index 54f620910a0..6e5bfd324d2 100644 --- a/modules/swagger-codegen/src/main/resources/aspnetcore/3.0/Startup.mustache +++ b/modules/swagger-codegen/src/main/resources/aspnetcore/3.0/Startup.mustache @@ -89,8 +89,8 @@ namespace {{packageName}} Name = "{{#infoName}}{{{infoName}}}{{/infoName}}{{^infoName}}Swagger Codegen Contributors{{/infoName}}", Url = new Uri("{{#infoUrl}}{{{infoUrl}}}{{/infoUrl}}{{^infoUrl}}https://github.com/swagger-api/swagger-codegen{{/infoUrl}}"), Email = "{{#infoEmail}}{{{infoEmail}}}{{/infoEmail}}" - }, - TermsOfService = new Uri("{{#termsOfService}}{{{termsOfService}}}{{/termsOfService}}") + }{{#termsOfService}}{, + TermsOfService = new Uri("{{termsOfService}}")}{{/termsOfService}} }); c.CustomSchemaIds(type => type.FullName); c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{_hostingEnv.ApplicationName}.xml"); diff --git a/modules/swagger-codegen/src/main/resources/aspnetcore/Startup.mustache b/modules/swagger-codegen/src/main/resources/aspnetcore/Startup.mustache index 8226e7a1b57..5137f2f1f17 100644 --- a/modules/swagger-codegen/src/main/resources/aspnetcore/Startup.mustache +++ b/modules/swagger-codegen/src/main/resources/aspnetcore/Startup.mustache @@ -86,8 +86,8 @@ namespace {{packageName}} Name = "{{#infoName}}{{{infoName}}}{{/infoName}}{{^infoName}}Swagger Codegen Contributors{{/infoName}}", Url = "{{#infoUrl}}{{{infoUrl}}}{{/infoUrl}}{{^infoUrl}}https://github.com/swagger-api/swagger-codegen{{/infoUrl}}", Email = "{{#infoEmail}}{{{infoEmail}}}{{/infoEmail}}" - }, - TermsOfService = "{{#termsOfService}}{{{termsOfService}}}{{/termsOfService}}" + }{{#termsOfService}}{, + TermsOfService = "{{termsOfService}}"}{{/termsOfService}} }); c.CustomSchemaIds(type => type.FriendlyId(true)); c.DescribeAllEnumsAsStrings();