File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
test/Microsoft.OpenApi.Tests/Walkers Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -115,9 +115,11 @@ public void LocatePathOperationContentSchema()
115
115
[ Fact ]
116
116
public void WalkDOMWithCycles ( )
117
117
{
118
- var loopySchema = new JsonSchemaBuilder ( ) . Type ( SchemaValueType . Object ) . Properties ( ( "name" , new JsonSchemaBuilder ( ) . Type ( SchemaValueType . String ) ) ) ;
118
+ var loopySchema = new JsonSchemaBuilder ( )
119
+ . Type ( SchemaValueType . Object )
120
+ . Properties ( ( "name" , new JsonSchemaBuilder ( ) . Type ( SchemaValueType . String ) ) ) ;
119
121
120
- loopySchema . Properties ( ( "parent" , loopySchema . Build ( ) ) ) ;
122
+ loopySchema . Properties ( ( "parent" , loopySchema ) ) ;
121
123
122
124
var doc = new OpenApiDocument ( )
123
125
{
@@ -140,7 +142,8 @@ public void WalkDOMWithCycles()
140
142
"#/paths" ,
141
143
"#/components" ,
142
144
"#/components/schemas/loopy" ,
143
- "#/components/schemas/loopy/properties/name" ,
145
+ "#/components/schemas/loopy/properties/parent" ,
146
+ "#/components/schemas/loopy/properties/parent/properties/name" ,
144
147
"#/tags"
145
148
} ) ;
146
149
}
You can’t perform that action at this time.
0 commit comments