Skip to content

Commit 9070a0b

Browse files
authored
Disable referencing OData annotations for responses (#1215)
PowerShell breaks when OData annotations in responses are referenced.
1 parent cfcea9b commit 9070a0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

OpenAPIService/OpenApiService.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,8 @@ public async Task<OpenApiDocument> ConvertCsdlToOpenApiAsync(Stream csdl)
699699
EnableDerivedTypesReferencesForResponses = false,
700700
ShowRootPath = true,
701701
ShowLinks = true,
702-
ExpandDerivedTypesNavigationProperties = false
702+
ExpandDerivedTypesNavigationProperties = false,
703+
EnableODataAnnotationReferencesForResponses = false
703704
};
704705
OpenApiDocument document = edmModel.ConvertToOpenApi(settings);
705706

0 commit comments

Comments
 (0)