From e43627fa09a3eb98fdd9c0027d89b47be7eb1afc Mon Sep 17 00:00:00 2001 From: Ryan Brink <5607577+unredundant@users.noreply.github.com> Date: Wed, 14 Sep 2022 16:45:10 -0500 Subject: [PATCH] chore: enable recursion test (#315) --- .../io/bkbn/kompendium/json/schema/SchemaGeneratorTest.kt | 4 ++-- json-schema/src/test/resources/T0016__recursive_object.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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" } ] }