Fix/required array field not honored #36

Merged
HideyoshiNakazone merged 2 commits from fix/required-array-field-not-honored into main 2025-08-19 02:00:59 +00:00
Showing only changes of commit 617f1aab2b - Show all commits

View File

@@ -204,6 +204,9 @@ class TestSchemaConverter(TestCase):
model(friends=["John", "Jane", "John"]).friends, {"John", "Jane"} model(friends=["John", "Jane", "John"]).friends, {"John", "Jane"}
) )
with self.assertRaises(ValueError):
model()
with self.assertRaises(ValueError): with self.assertRaises(ValueError):
model(friends=[]) model(friends=[])