Added Contact NAME to Startup.cs (#7168)

* Ran bin/aspnetcore-petstore-server.sh

* Added contact information to startup.cs

* updated to support NAME as well

* updated samples

* updated NAME default
This commit is contained in:
Max K 2017-12-13 18:31:11 +01:00 committed by William Cheng
parent 5e4d363675
commit 5306372b98
2 changed files with 4 additions and 2 deletions

View File

@ -61,7 +61,8 @@ namespace {{packageName}}
Description = "{{#appName}}{{{appName}}}{{/appName}}{{^appName}}{{packageName}}{{/appName}} (ASP.NET Core 2.0)",
Contact = new Contact()
{
Url = "{{#infoUrl}}{{{infoUrl}}}{{/infoUrl}}",
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}}"

View File

@ -70,7 +70,8 @@ namespace IO.Swagger
Description = "Swagger Petstore (ASP.NET Core 2.0)",
Contact = new Contact()
{
Url = "",
Name = "Swagger Codegen Contributors",
Url = "https://github.com/swagger-api/swagger-codegen",
Email = "apiteam@swagger.io"
},
TermsOfService = "http://swagger.io/terms/"