diff --git a/json-schema/src/test/kotlin/io/bkbn/kompendium/json/schema/SchemaGeneratorTest.kt b/json-schema/src/test/kotlin/io/bkbn/kompendium/json/schema/SchemaGeneratorTest.kt index f308748fd..440f152d2 100644 --- a/json-schema/src/test/kotlin/io/bkbn/kompendium/json/schema/SchemaGeneratorTest.kt +++ b/json-schema/src/test/kotlin/io/bkbn/kompendium/json/schema/SchemaGeneratorTest.kt @@ -37,8 +37,8 @@ class SchemaGeneratorTest : DescribeSpec({ it("Can generate the schema for a polymorphic object") { jsonSchemaTest("T0015__polymorphic_object.json") } - xit("Can generate the schema for a recursive type") { - // TODO jsonSchemaTest("T0016__recursive_object.json") + it("Can generate the schema for a recursive type") { + jsonSchemaTest("T0016__recursive_object.json") } it("Can generate the schema for object with transient property") { jsonSchemaTest("T0018__transient_object.json") diff --git a/json-schema/src/test/resources/T0016__recursive_object.json b/json-schema/src/test/resources/T0016__recursive_object.json index 4d518bda1..f78bd096d 100644 --- a/json-schema/src/test/resources/T0016__recursive_object.json +++ b/json-schema/src/test/resources/T0016__recursive_object.json @@ -1,13 +1,13 @@ { "anyOf": [ - { - "$ref": "#/components/schemas/OneJamma" - }, { "$ref": "#/components/schemas/AnothaJamma" }, { "$ref": "#/components/schemas/InsaneJamma" + }, + { + "$ref": "#/components/schemas/OneJamma" } ] }