Skip to content

Commit 3055d68

Browse files
[GENERATE] Pydantic models from JSON Schema
1 parent bd2ff10 commit 3055d68

File tree

2 files changed

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

2 files changed

+8
-8
lines changed

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

Lines changed: 4 additions & 4 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-03T10:05:55+00:00
3+
# timestamp: 2025-12-03T08:30:17+00:00
44

55
from __future__ import annotations
66

@@ -53,7 +53,7 @@ class UseRestrictionItem(DatadocBaseModel):
5353

5454
class CustomTypeForDatasetMetadatum(DatadocBaseModel):
5555
key: Optional[str] = Field(None, description="Custom type KEY", title="Key")
56-
value: Optional[Union[str, list, dict[str, Any]]] = Field(
56+
value: Optional[Union[str, list[Any], dict[str, Any]]] = Field(
5757
None,
5858
description="Custom type VALUE (of type string, array or object).",
5959
title="Value",
@@ -88,7 +88,7 @@ class Pseudonymization(DatadocBaseModel):
8888
description="Type of stable identifier the variable was mapped to prior to pseudonymization.",
8989
title="Stable identifier type",
9090
)
91-
stable_identifier_version: Optional[str] = Field(
91+
stable_identifier_version: Optional[date] = Field(
9292
None,
9393
description="Version of stable identifier the variable was mapped to prior to pseudonymization.",
9494
title="Stable identifier version",
@@ -125,7 +125,7 @@ class SentinelValues(DatadocBaseModel):
125125

126126
class CustomTypeForVariableMetadatum(DatadocBaseModel):
127127
key: Optional[str] = Field(None, description="Custom type KEY", title="Key")
128-
value: Optional[Union[str, list, dict[str, Any]]] = Field(
128+
value: Optional[Union[str, list[Any], dict[str, Any]]] = Field(
129129
None,
130130
description="Custom type VALUE (of type string, array or object).",
131131
title="Value",

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

Lines changed: 4 additions & 4 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-03T10:05:57+00:00
3+
# timestamp: 2025-12-03T08:30:19+00:00
44

55
from __future__ import annotations
66

@@ -53,7 +53,7 @@ class UseRestrictionItem(DatadocBaseModel):
5353

5454
class CustomTypeForDatasetMetadatum(DatadocBaseModel):
5555
key: Optional[str] = Field(None, description="Custom type KEY", title="Key")
56-
value: Optional[Union[str, list, dict[str, Any]]] = Field(
56+
value: Optional[Union[str, list[Any], dict[str, Any]]] = Field(
5757
None,
5858
description="Custom type VALUE (of type string, array or object).",
5959
title="Value",
@@ -88,7 +88,7 @@ class Pseudonymization(DatadocBaseModel):
8888
description="Type of stable identifier the variable was mapped to prior to pseudonymization.",
8989
title="Stable identifier type",
9090
)
91-
stable_identifier_version: Optional[str] = Field(
91+
stable_identifier_version: Optional[date] = Field(
9292
None,
9393
description="Version of stable identifier the variable was mapped to prior to pseudonymization.",
9494
title="Stable identifier version",
@@ -125,7 +125,7 @@ class SentinelValues(DatadocBaseModel):
125125

126126
class CustomTypeForVariableMetadatum(DatadocBaseModel):
127127
key: Optional[str] = Field(None, description="Custom type KEY", title="Key")
128-
value: Optional[Union[str, list, dict[str, Any]]] = Field(
128+
value: Optional[Union[str, list[Any], dict[str, Any]]] = Field(
129129
None,
130130
description="Custom type VALUE (of type string, array or object).",
131131
title="Value",

0 commit comments

Comments
 (0)