Skip to content

Commit

Permalink
[GENERATE] Pydantic models from JSON Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dapla-bot[bot] committed Jul 8, 2024
1 parent f541554 commit cdeb001
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions generated/python/datadoc_model/datadoc_model/model.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# filename: metadata-container-json-schema.json
# timestamp: 2024-04-25T13:29:06+00:00
# timestamp: 2024-07-08T12:29:53+00:00

from __future__ import annotations

Expand Down Expand Up @@ -67,6 +67,14 @@ class VariableRole(str, Enum):
ATTRIBUTE = "ATTRIBUTE"


class IsPersonalData(str, Enum):
NOT_PERSONAL_DATA = "NOT_PERSONAL_DATA"
PSEUDONYMISED_ENCRYPTED_PERSONAL_DATA = "PSEUDONYMISED_ENCRYPTED_PERSONAL_DATA"
NON_PSEUDONYMISED_ENCRYPTED_PERSONAL_DATA = (
"NON_PSEUDONYMISED_ENCRYPTED_PERSONAL_DATA"
)


class SentinelValues(DatadocBaseModel):
sentinel_value_uri: Optional[AnyUrl] = Field(
None,
Expand Down Expand Up @@ -364,11 +372,7 @@ class Variable(DatadocBaseModel):
description="A link (URI) to the variable's definition in Vardok/VarDef",
title="Definition URI",
)
direct_person_identifying: Optional[bool] = Field(
None,
description="Direct Person identifying Information (DPI). Some of the values \u200b\u200bin an instance variable kan be DPI, others not. In this case, DPI is set equal to true. For example, the variable exporter where some of the values \u200b\u200bcan be organization number, others social security numbers (sole proprietorships).",
title="Direct Person identifying Information (DPI)",
)
is_personal_data: Optional[IsPersonalData] = Field(None, description="", title="")
data_source: Optional[str] = Field(
None,
description="Data source. Set at data set level, but can be overwritten at variable instance level.",
Expand Down

0 comments on commit cdeb001

Please sign in to comment.