We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f73e673 commit 4428e67Copy full SHA for 4428e67
src/Microsoft.OpenApi.Readers/V3/OpenApiV3VersionService.cs
@@ -71,7 +71,6 @@ public OpenApiReference ConvertToOpenApiReference(
71
string reference,
72
ReferenceType? type)
73
{
74
- var openApiReference = new OpenApiReference();
75
if (!string.IsNullOrWhiteSpace(reference))
76
77
var segments = reference.Split('#');
@@ -110,6 +109,8 @@ public OpenApiReference ConvertToOpenApiReference(
110
109
}
111
// Where fragments point into a non-OpenAPI document, the id will be the complete fragment identifier
112
string id = segments[1];
+ var openApiReference = new OpenApiReference();
113
+
114
// $ref: externalSource.yaml#/Pet
115
if (id.StartsWith("/components/"))
116
0 commit comments