feat: validates that top level type cannot be list
This commit is contained in:
@@ -1045,5 +1045,14 @@ class TestSchemaConverter(TestCase):
|
||||
},
|
||||
}
|
||||
|
||||
with self.assertRaises(InvalidSchemaException):
|
||||
self.converter.build_with_cache(schema)
|
||||
|
||||
def test_parse_list_type_root_level_throws(self):
|
||||
schema = {
|
||||
"title": "TestListType",
|
||||
"type": ["string", "number"]
|
||||
}
|
||||
|
||||
with self.assertRaises(InvalidSchemaException):
|
||||
self.converter.build_with_cache(schema)
|
||||
Reference in New Issue
Block a user