Skip to content

Commit 99b00a9

Browse files
[GENERATE] Pydantic models from JSON Schema
1 parent e0c2f42 commit 99b00a9

File tree

2 files changed

+4
-4
lines changed
  • generated/python/datadoc_model/datadoc_model

2 files changed

+4
-4
lines changed

generated/python/datadoc_model/datadoc_model/all_optional/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: metadata-container-json-schema.json
3-
# timestamp: 2025-09-03T09:57:17+00:00
3+
# timestamp: 2025-09-03T10:05:55+00:00
44

55
from __future__ import annotations
66

generated/python/datadoc_model/datadoc_model/required/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: metadata-container-json-schema.json
3-
# timestamp: 2025-09-03T09:57:19+00:00
3+
# timestamp: 2025-09-03T10:05:57+00:00
44

55
from __future__ import annotations
66

@@ -41,8 +41,8 @@ class UseRestrictionType(Enum):
4141

4242

4343
class UseRestrictionItem(DatadocBaseModel):
44-
use_restriction_type: Optional[UseRestrictionType] = Field(
45-
None, description="Use restriction type", title="Use restriction type"
44+
use_restriction_type: UseRestrictionType = Field(
45+
..., description="Use restriction type", title="Use restriction type"
4646
)
4747
use_restriction_date: Optional[date] = Field(
4848
None,

0 commit comments

Comments
 (0)