Skip to content

Commit 4901a65

Browse files
committed
Merge branch 'mk/add-webhooks-property' into mk/add-pathItems-to-components-object
2 parents 7f14ba1 + 6152336 commit 4901a65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Models/OpenApiDocument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public void SerializeAsV3(IOpenApiWriter writer)
130130
(w, key, component) =>
131131
{
132132
if (component.Reference != null &&
133-
component.Reference.Type == ReferenceType.Schema &&
133+
component.Reference.Type == ReferenceType.PathItem &&
134134
component.Reference.Id == key)
135135
{
136136
component.SerializeAsV3WithoutReference(w);

0 commit comments

Comments
 (0)