Skip to content

Commit 5429aec

Browse files
authored
Merge pull request #469 from irvinesunday/vnext
Adds missing oneOf child object in walker method for OpenApiSchema
2 parents ca68755 + 10485c0 commit 5429aec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Microsoft.OpenApi/Services/OpenApiWalker.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,11 @@ internal void Walk(OpenApiSchema schema, bool isComponent = false)
771771
Walk("anyOf", () => Walk(schema.AnyOf));
772772
}
773773

774+
if (schema.OneOf != null)
775+
{
776+
Walk("oneOf", () => Walk(schema.OneOf));
777+
}
778+
774779
if (schema.Properties != null)
775780
{
776781
Walk("properties", () =>

0 commit comments

Comments
 (0)