Browse Source

Merge pull request #746 from cnAbp/patch-SwaggerGen

fix #743 Use CustomSchemaIds for SwaggerGen.
pull/748/head
Halil İbrahim Kalkan 7 years ago
committed by GitHub
parent
commit
6e6e77826e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      modules/blogging/app/Volo.BloggingTestApp/BloggingTestAppModule.cs
  2. 1
      modules/docs/app/Volo.DocsTestApp/DocsTestAppModule.cs
  3. 1
      samples/BookStore/src/Acme.BookStore.Web/BookStoreWebModule.cs
  4. 1
      samples/MicroserviceDemo/microservices/identity/IdentityService.Host/IdentityServiceHostModule.cs
  5. 1
      templates/module/app/MyCompanyName.MyProjectName.DemoApp/DemoAppModule.cs
  6. 1
      templates/mvc/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebModule.cs
  7. 1
      templates/service/host/MyCompanyName.MyProjectName.Host/DemoAppModule.cs

1
modules/blogging/app/Volo.BloggingTestApp/BloggingTestAppModule.cs

@ -90,6 +90,7 @@ namespace Volo.BloggingTestApp
{
options.SwaggerDoc("v1", new Info { Title = "Blogging API", Version = "v1" });
options.DocInclusionPredicate((docName, description) => true);
options.CustomSchemaIds(type => type.FullName);
});
var cultures = new List<CultureInfo> { new CultureInfo("en"), new CultureInfo("tr") };

1
modules/docs/app/Volo.DocsTestApp/DocsTestAppModule.cs

@ -82,6 +82,7 @@ namespace Volo.DocsTestApp
{
options.SwaggerDoc("v1", new Info { Title = "Docs API", Version = "v1" });
options.DocInclusionPredicate((docName, description) => true);
options.CustomSchemaIds(type => type.FullName);
});
var cultures = new List<CultureInfo> { new CultureInfo("en"), new CultureInfo("tr") };

1
samples/BookStore/src/Acme.BookStore.Web/BookStoreWebModule.cs

@ -134,6 +134,7 @@ namespace Acme.BookStore
{
options.SwaggerDoc("v1", new Info { Title = "BookStore API", Version = "v1" });
options.DocInclusionPredicate((docName, description) => true);
options.CustomSchemaIds(type => type.FullName);
});
}

1
samples/MicroserviceDemo/microservices/identity/IdentityService.Host/IdentityServiceHostModule.cs

@ -52,6 +52,7 @@ namespace IdentityService.Host
{
options.SwaggerDoc("v1", new Info {Title = "Identity Service API", Version = "v1"});
options.DocInclusionPredicate((docName, description) => true);
options.CustomSchemaIds(type => type.FullName);
});
Configure<AbpLocalizationOptions>(options =>

1
templates/module/app/MyCompanyName.MyProjectName.DemoApp/DemoAppModule.cs

@ -76,6 +76,7 @@ namespace MyCompanyName.MyProjectName.DemoApp
{
options.SwaggerDoc("v1", new Info { Title = "MyProjectName API", Version = "v1" });
options.DocInclusionPredicate((docName, description) => true);
options.CustomSchemaIds(type => type.FullName);
});
Configure<AbpLocalizationOptions>(options =>

1
templates/mvc/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebModule.cs

@ -153,6 +153,7 @@ namespace MyCompanyName.MyProjectName
{
options.SwaggerDoc("v1", new Info { Title = "MyProjectName API", Version = "v1" });
options.DocInclusionPredicate((docName, description) => true);
options.CustomSchemaIds(type => type.FullName);
});
}

1
templates/service/host/MyCompanyName.MyProjectName.Host/DemoAppModule.cs

@ -63,6 +63,7 @@ namespace MyCompanyName.MyProjectName.Host
{
options.SwaggerDoc("v1", new Info { Title = "MyProjectName API", Version = "v1" });
options.DocInclusionPredicate((docName, description) => true);
options.CustomSchemaIds(type => type.FullName);
});
Configure<AbpLocalizationOptions>(options =>

Loading…
Cancel
Save