chore: enable recursion test (#315)
This commit is contained in:
@ -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")
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user