Better Object Internal Structure and Type Selection #16

Merged
HideyoshiNakazone merged 10 commits from improvement/better-internal-structure into main 2025-06-04 04:27:29 +00:00
Showing only changes of commit 782e09d5e3 - Show all commits

View File

@@ -11,6 +11,20 @@ def is_pydantic_model(cls):
class TestSchemaConverter(TestCase):
def test_invalid_schema(self):
schema = {
"title": 1,
"description": "A person",
"type": "object",
"properties": {
"name": {"type": "string"},
"age": {"type": "integer"},
},
}
with self.assertRaises(ValueError):
SchemaConverter.build(schema)
def test_build_expects_title(self):
schema = {
"description": "A person",