We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12db74e commit 0212eb0Copy full SHA for 0212eb0
tests/libs/test_pydantic.py
@@ -748,8 +748,10 @@ class MyModel(BaseModel):
748
def test_parent_nullable_means_children_nullable():
749
class MyParent(BaseModel):
750
optional_child: Optional[ChildModel]
751
+ non_optional_child: ChildModel
752
dlt_config: ClassVar[DltConfig] = {"skip_nested_types": True}
753
754
schema = pydantic_to_table_schema_columns(MyParent)
755
756
assert schema["optional_child__child_attribute"]["nullable"]
757
+ assert schema["non_optional_child__child_attribute"]["nullable"] is True
0 commit comments