Skip to content

Commit 39e0c73

Browse files
[GENERATE] Pydantic models from JSON Schema
1 parent 61c924f commit 39e0c73

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-12-03T08:52:42+00:00
3+
# timestamp: 2025-12-03T12:33:57+00:00
44

55
from __future__ import annotations
66

@@ -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[date] = Field(
91+
stable_identifier_version: Optional[str] = Field(
9292
None,
9393
description="Version of stable identifier the variable was mapped to prior to pseudonymization.",
9494
title="Stable identifier version",
@@ -388,8 +388,8 @@ class DatadocMetadata(DatadocBaseModel):
388388
percentage_complete: Optional[int] = Field(
389389
None, description="Percentage of obligatory metadata fields populated."
390390
)
391-
document_version: Literal["6.1.1"] = Field(
392-
"6.1.1", description="Version of this model"
391+
document_version: Literal["6.1.2"] = Field(
392+
"6.1.2", description="Version of this model"
393393
)
394394
dataset: Optional[Dataset] = None
395395
variables: Optional[list[Variable]] = None

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-12-03T08:52:44+00:00
3+
# timestamp: 2025-12-03T12:33:59+00:00
44

55
from __future__ import annotations
66

@@ -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[date] = Field(
91+
stable_identifier_version: Optional[str] = Field(
9292
None,
9393
description="Version of stable identifier the variable was mapped to prior to pseudonymization.",
9494
title="Stable identifier version",
@@ -380,8 +380,8 @@ class DatadocMetadata(DatadocBaseModel):
380380
percentage_complete: Optional[int] = Field(
381381
None, description="Percentage of obligatory metadata fields populated."
382382
)
383-
document_version: Literal["6.1.1"] = Field(
384-
"6.1.1", description="Version of this model"
383+
document_version: Literal["6.1.2"] = Field(
384+
"6.1.2", description="Version of this model"
385385
)
386386
dataset: Dataset
387387
variables: list[Variable]

0 commit comments

Comments
 (0)