fix(jambo): Fix allOf constraints (#1)

* Fix incorrect min/max length handling in allOf type parser and update tests accordingly

* Fix schema converter test to correct allOf handling
This commit is contained in:
Thomas
2025-07-04 11:00:06 +02:00
committed by GitHub
parent d431dca353
commit cbcb56c3c4
3 changed files with 11 additions and 8 deletions

View File

@@ -358,10 +358,13 @@ class TestSchemaConverter(TestCase):
Model = SchemaConverter.build(schema)
obj = Model(
name="J",
name="John",
)
self.assertEqual(obj.name, "J")
self.assertEqual(obj.name, "John")
with self.assertRaises(ValueError):
Model(name="J")
with self.assertRaises(ValueError):
Model(name="John Invalid")