Skip to content

Commit 0a40b9b

Browse files
[GENERATE] Pydantic models from JSON Schema
1 parent dd740d9 commit 0a40b9b

File tree

2 files changed

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

2 files changed

+12
-12
lines changed

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

Lines changed: 6 additions & 6 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-05-21T07:24:26+00:00
3+
# timestamp: 2025-05-21T07:32:46+00:00
44

55
from __future__ import annotations
66

@@ -67,6 +67,11 @@ class VariableRole(str, Enum):
6767

6868

6969
class Pseudonymization(DatadocBaseModel):
70+
pseudonymization_time: Optional[datetime] = Field(
71+
None,
72+
description="Time at which the variable was pseudonymized. In ISO 8601 format.",
73+
title="Variable pseudo time",
74+
)
7075
stable_identifier_type: Optional[str] = Field(
7176
None,
7277
description="Type of stable identifier the variable was mapped to prior to pseudonymization.",
@@ -286,11 +291,6 @@ class SpecialValues(DatadocBaseModel):
286291

287292

288293
class Variable(DatadocBaseModel):
289-
pseudonymization_time: Optional[datetime] = Field(
290-
None,
291-
description="Time at which the variable was pseudonymized. In ISO 8601 format.",
292-
title="Variable pseudo time",
293-
)
294294
short_name: Optional[str] = Field(
295295
None,
296296
description="Physical name of the variable (data element) in the dataset. Should match the recommended short name.",

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

Lines changed: 6 additions & 6 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-05-21T07:24:28+00:00
3+
# timestamp: 2025-05-21T07:32:48+00:00
44

55
from __future__ import annotations
66

@@ -67,6 +67,11 @@ class VariableRole(str, Enum):
6767

6868

6969
class Pseudonymization(DatadocBaseModel):
70+
pseudonymization_time: Optional[datetime] = Field(
71+
None,
72+
description="Time at which the variable was pseudonymized. In ISO 8601 format.",
73+
title="Variable pseudo time",
74+
)
7075
stable_identifier_type: Optional[str] = Field(
7176
None,
7277
description="Type of stable identifier the variable was mapped to prior to pseudonymization.",
@@ -280,11 +285,6 @@ class SpecialValues(DatadocBaseModel):
280285

281286

282287
class Variable(DatadocBaseModel):
283-
pseudonymization_time: Optional[datetime] = Field(
284-
None,
285-
description="Time at which the variable was pseudonymized. In ISO 8601 format.",
286-
title="Variable pseudo time",
287-
)
288288
short_name: str = Field(
289289
...,
290290
description="Physical name of the variable (data element) in the dataset. Should match the recommended short name.",

0 commit comments

Comments
 (0)