Skip to content

Commit daf25a2

Browse files
authored
Merge branch 'openapi' into openapi-required-and-nullable-properties
2 parents f5bb7fc + 935fa2b commit daf25a2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/JsonApiDotNetCore.OpenApi/SwaggerComponents/CachingSwaggerGenerator.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ public OpenApiDocument GetSwagger(string documentName, string? host = null, stri
2828

2929
string cacheKey = $"{documentName}#{host}#{basePath}";
3030

31-
return _openApiDocumentCache.GetOrAdd(cacheKey, _ =>
32-
{
33-
OpenApiDocument document = _defaultSwaggerGenerator.GetSwagger(documentName, host, basePath);
34-
35-
// Remove once https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/2283 is addressed.
36-
document.Components.Schemas = new SortedDictionary<string, OpenApiSchema>(document.Components.Schemas, StringComparer.Ordinal);
37-
return document;
38-
});
31+
return _openApiDocumentCache.GetOrAdd(cacheKey, _ => _defaultSwaggerGenerator.GetSwagger(documentName, host, basePath));
3932
}
4033
}

0 commit comments

Comments
 (0)