You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/VirtoCommerce.Platform.Web/Swagger/SwaggerServiceCollectionExtensions.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ public static void AddSwagger(this IServiceCollection services, IConfiguration c
118
118
// Unfortunately, we can't use .CustomSchemaIds, because it changes schema ids for all documents (impossible to change ids depending on document name).
119
119
// But we need this, because PlatformUI document should contain ref schema ids as type.FullName to avoid conflict with same type names in different modules.
120
120
// As a solution we use custom swagger generator that catches document name and generates schema ids depending on it.
//This is important line switches the SwaggerGenerator to use the Newtonsoft contract resolver that uses the globally registered PolymorphJsonContractResolver
124
124
//to propagate up to the resulting OpenAPI schema the derived types instead of base domain types
0 commit comments