feat: support object-level descriptions
By saving them as a pydantic model docstring. Fixes https://github.com/HideyoshiNakazone/jambo/issues/77
This commit is contained in:
@@ -274,6 +274,7 @@ class TestSchemaConverter(TestCase):
|
||||
}
|
||||
|
||||
model = self.converter.build_with_cache(schema)
|
||||
self.assertEqual(model.__doc__, "A person")
|
||||
|
||||
obj = model(address={"street": "123 Main St", "city": "Springfield"})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user