[aspnetcore] Fix issue #19592 regarding swagger xml comments (#19593)

This commit is contained in:
David Riddervold Marconis 2024-09-19 07:10:14 +02:00 committed by GitHub
parent 3240c5baf0
commit eebecc8646
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 14 additions and 14 deletions

View File

@ -119,7 +119,7 @@ namespace {{packageName}}
Version = "{{{version}}}{{^version}}v1{{/version}}",
});
c.CustomSchemaIds(type => type.FriendlyId(true));
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetEntryAssembly().GetName().Name}.xml");
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetExecutingAssembly().GetName().Name}.xml");
{{#basePathWithoutHost}}
// Sets the basePath property in the OpenAPI document generated
c.DocumentFilter<BasePathFilter>("{{{.}}}");

View File

@ -100,7 +100,7 @@ namespace Org.OpenAPITools
Version = "1.0.0",
});
c.CustomSchemaIds(type => type.FriendlyId(true));
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetEntryAssembly().GetName().Name}.xml");
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetExecutingAssembly().GetName().Name}.xml");
// Sets the basePath property in the OpenAPI document generated
c.DocumentFilter<BasePathFilter>("/v2");

View File

@ -100,7 +100,7 @@ namespace Org.OpenAPITools
Version = "1.0.0",
});
c.CustomSchemaIds(type => type.FriendlyId(true));
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetEntryAssembly().GetName().Name}.xml");
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetExecutingAssembly().GetName().Name}.xml");
// Sets the basePath property in the OpenAPI document generated
c.DocumentFilter<BasePathFilter>("/v2");

View File

@ -100,7 +100,7 @@ namespace Org.OpenAPITools
Version = "1.0.0",
});
c.CustomSchemaIds(type => type.FriendlyId(true));
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetEntryAssembly().GetName().Name}.xml");
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetExecutingAssembly().GetName().Name}.xml");
// Sets the basePath property in the OpenAPI document generated
c.DocumentFilter<BasePathFilter>("/v2");

View File

@ -97,7 +97,7 @@ namespace Org.OpenAPITools
Version = "1.0.0",
});
c.CustomSchemaIds(type => type.FriendlyId(true));
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetEntryAssembly().GetName().Name}.xml");
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetExecutingAssembly().GetName().Name}.xml");
// Sets the basePath property in the OpenAPI document generated
c.DocumentFilter<BasePathFilter>("/v2");

View File

@ -100,7 +100,7 @@ namespace Org.OpenAPITools
Version = "1.0.0",
});
c.CustomSchemaIds(type => type.FriendlyId(true));
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetEntryAssembly().GetName().Name}.xml");
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetExecutingAssembly().GetName().Name}.xml");
// Sets the basePath property in the OpenAPI document generated
c.DocumentFilter<BasePathFilter>("/v2");

View File

@ -100,7 +100,7 @@ namespace Org.OpenAPITools
Version = "1.0.0",
});
c.CustomSchemaIds(type => type.FriendlyId(true));
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetEntryAssembly().GetName().Name}.xml");
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetExecutingAssembly().GetName().Name}.xml");
// Sets the basePath property in the OpenAPI document generated
c.DocumentFilter<BasePathFilter>("/v2");

View File

@ -100,7 +100,7 @@ namespace Org.OpenAPITools
Version = "1.0.0",
});
c.CustomSchemaIds(type => type.FriendlyId(true));
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetEntryAssembly().GetName().Name}.xml");
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetExecutingAssembly().GetName().Name}.xml");
// Sets the basePath property in the OpenAPI document generated
c.DocumentFilter<BasePathFilter>("/v2");

View File

@ -100,7 +100,7 @@ namespace Org.OpenAPITools
Version = "1.0.0",
});
c.CustomSchemaIds(type => type.FriendlyId(true));
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetEntryAssembly().GetName().Name}.xml");
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetExecutingAssembly().GetName().Name}.xml");
// Sets the basePath property in the OpenAPI document generated
c.DocumentFilter<BasePathFilter>("/v2");

View File

@ -97,7 +97,7 @@ namespace Org.OpenAPITools
Version = "1.0.0",
});
c.CustomSchemaIds(type => type.FriendlyId(true));
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetEntryAssembly().GetName().Name}.xml");
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetExecutingAssembly().GetName().Name}.xml");
// Sets the basePath property in the OpenAPI document generated
c.DocumentFilter<BasePathFilter>("/v2");

View File

@ -100,7 +100,7 @@ namespace Org.OpenAPITools
Version = "1.0.0",
});
c.CustomSchemaIds(type => type.FriendlyId(true));
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetEntryAssembly().GetName().Name}.xml");
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetExecutingAssembly().GetName().Name}.xml");
// Sets the basePath property in the OpenAPI document generated
c.DocumentFilter<BasePathFilter>("/v2");

View File

@ -100,7 +100,7 @@ namespace Org.OpenAPITools
Version = "1.0.0",
});
c.CustomSchemaIds(type => type.FriendlyId(true));
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetEntryAssembly().GetName().Name}.xml");
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetExecutingAssembly().GetName().Name}.xml");
// Sets the basePath property in the OpenAPI document generated
c.DocumentFilter<BasePathFilter>("/v2");

View File

@ -100,7 +100,7 @@ namespace Org.OpenAPITools
Version = "1.0.0",
});
c.CustomSchemaIds(type => type.FriendlyId(true));
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetEntryAssembly().GetName().Name}.xml");
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetExecutingAssembly().GetName().Name}.xml");
// Sets the basePath property in the OpenAPI document generated
c.DocumentFilter<BasePathFilter>("/v2");

View File

@ -100,7 +100,7 @@ namespace Org.OpenAPITools
Version = "1.0.0",
});
c.CustomSchemaIds(type => type.FriendlyId(true));
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetEntryAssembly().GetName().Name}.xml");
c.IncludeXmlComments($"{AppContext.BaseDirectory}{Path.DirectorySeparatorChar}{Assembly.GetExecutingAssembly().GetName().Name}.xml");
// Sets the basePath property in the OpenAPI document generated
c.DocumentFilter<BasePathFilter>("/v2");