chore: enable recursion test (#315)

This commit is contained in:
Ryan Brink
2022-09-14 16:45:10 -05:00
committed by GitHub
parent f1d252954b
commit e43627fa09
2 changed files with 5 additions and 5 deletions

View File

@ -37,8 +37,8 @@ class SchemaGeneratorTest : DescribeSpec({
it("Can generate the schema for a polymorphic object") { it("Can generate the schema for a polymorphic object") {
jsonSchemaTest<FlibbityGibbit>("T0015__polymorphic_object.json") jsonSchemaTest<FlibbityGibbit>("T0015__polymorphic_object.json")
} }
xit("Can generate the schema for a recursive type") { it("Can generate the schema for a recursive type") {
// TODO jsonSchemaTest<SlammaJamma>("T0016__recursive_object.json") jsonSchemaTest<SlammaJamma>("T0016__recursive_object.json")
} }
it("Can generate the schema for object with transient property") { it("Can generate the schema for object with transient property") {
jsonSchemaTest<TransientObject>("T0018__transient_object.json") jsonSchemaTest<TransientObject>("T0018__transient_object.json")

View File

@ -1,13 +1,13 @@
{ {
"anyOf": [ "anyOf": [
{
"$ref": "#/components/schemas/OneJamma"
},
{ {
"$ref": "#/components/schemas/AnothaJamma" "$ref": "#/components/schemas/AnothaJamma"
}, },
{ {
"$ref": "#/components/schemas/InsaneJamma" "$ref": "#/components/schemas/InsaneJamma"
},
{
"$ref": "#/components/schemas/OneJamma"
} }
] ]
} }