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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with
7 additions and
0 deletions
-
modules/blogging/app/Volo.BloggingTestApp/BloggingTestAppModule.cs
-
modules/docs/app/Volo.DocsTestApp/DocsTestAppModule.cs
-
samples/BookStore/src/Acme.BookStore.Web/BookStoreWebModule.cs
-
samples/MicroserviceDemo/microservices/identity/IdentityService.Host/IdentityServiceHostModule.cs
-
templates/module/app/MyCompanyName.MyProjectName.DemoApp/DemoAppModule.cs
-
templates/mvc/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebModule.cs
-
templates/service/host/MyCompanyName.MyProjectName.Host/DemoAppModule.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") }; |
|
|
|
|
|
|
|
@ -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") }; |
|
|
|
|
|
|
|
@ -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); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -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 => |
|
|
|
|
|
|
|
@ -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 => |
|
|
|
|
|
|
|
@ -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); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -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 => |
|
|
|
|