diff --git a/generated/python/datadoc_model/datadoc_model/all_optional/model.py b/generated/python/datadoc_model/datadoc_model/all_optional/model.py index 63fb4c5..1b59444 100644 --- a/generated/python/datadoc_model/datadoc_model/all_optional/model.py +++ b/generated/python/datadoc_model/datadoc_model/all_optional/model.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: metadata-container-json-schema.json -# timestamp: 2025-09-03T10:05:55+00:00 +# timestamp: 2025-12-03T08:38:27+00:00 from __future__ import annotations @@ -53,7 +53,7 @@ class UseRestrictionItem(DatadocBaseModel): class CustomTypeForDatasetMetadatum(DatadocBaseModel): key: Optional[str] = Field(None, description="Custom type KEY", title="Key") - value: Optional[Union[str, list, dict[str, Any]]] = Field( + value: Optional[Union[str, list[Any], dict[str, Any]]] = Field( None, description="Custom type VALUE (of type string, array or object).", title="Value", @@ -88,7 +88,7 @@ class Pseudonymization(DatadocBaseModel): description="Type of stable identifier the variable was mapped to prior to pseudonymization.", title="Stable identifier type", ) - stable_identifier_version: Optional[str] = Field( + stable_identifier_version: Optional[date] = Field( None, description="Version of stable identifier the variable was mapped to prior to pseudonymization.", title="Stable identifier version", @@ -125,7 +125,7 @@ class SentinelValues(DatadocBaseModel): class CustomTypeForVariableMetadatum(DatadocBaseModel): key: Optional[str] = Field(None, description="Custom type KEY", title="Key") - value: Optional[Union[str, list, dict[str, Any]]] = Field( + value: Optional[Union[str, list[Any], dict[str, Any]]] = Field( None, description="Custom type VALUE (of type string, array or object).", title="Value", diff --git a/generated/python/datadoc_model/datadoc_model/required/model.py b/generated/python/datadoc_model/datadoc_model/required/model.py index 5d91ae6..57646d2 100644 --- a/generated/python/datadoc_model/datadoc_model/required/model.py +++ b/generated/python/datadoc_model/datadoc_model/required/model.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: metadata-container-json-schema.json -# timestamp: 2025-09-03T10:05:57+00:00 +# timestamp: 2025-12-03T08:38:29+00:00 from __future__ import annotations @@ -53,7 +53,7 @@ class UseRestrictionItem(DatadocBaseModel): class CustomTypeForDatasetMetadatum(DatadocBaseModel): key: Optional[str] = Field(None, description="Custom type KEY", title="Key") - value: Optional[Union[str, list, dict[str, Any]]] = Field( + value: Optional[Union[str, list[Any], dict[str, Any]]] = Field( None, description="Custom type VALUE (of type string, array or object).", title="Value", @@ -88,7 +88,7 @@ class Pseudonymization(DatadocBaseModel): description="Type of stable identifier the variable was mapped to prior to pseudonymization.", title="Stable identifier type", ) - stable_identifier_version: Optional[str] = Field( + stable_identifier_version: Optional[date] = Field( None, description="Version of stable identifier the variable was mapped to prior to pseudonymization.", title="Stable identifier version", @@ -125,7 +125,7 @@ class SentinelValues(DatadocBaseModel): class CustomTypeForVariableMetadatum(DatadocBaseModel): key: Optional[str] = Field(None, description="Custom type KEY", title="Key") - value: Optional[Union[str, list, dict[str, Any]]] = Field( + value: Optional[Union[str, list[Any], dict[str, Any]]] = Field( None, description="Custom type VALUE (of type string, array or object).", title="Value", diff --git a/generated/python/datadoc_model/pyproject.toml b/generated/python/datadoc_model/pyproject.toml index ea2f898..8722c21 100644 --- a/generated/python/datadoc_model/pyproject.toml +++ b/generated/python/datadoc_model/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ssb-datadoc-model" -version = "8.0.0" +version = "8.0.1" description = "Data Model for use in Statistics Norway's Metadata system" authors = [{ name = "Statistics Norway", email = "metadata@ssb.no" }] license = "MIT" diff --git a/src/datadoc/datadoc-json-schema.json b/src/datadoc/datadoc-json-schema.json index 817027e..1328d55 100644 --- a/src/datadoc/datadoc-json-schema.json +++ b/src/datadoc/datadoc-json-schema.json @@ -292,7 +292,8 @@ "type": "string", "title": "Stable identifier version", "description": "Version of stable identifier the variable was mapped to prior to pseudonymization.", - "$comment": "Only relevant when the variable is mapped to a stable identifier." + "$comment": "Only relevant when the variable is mapped to a stable identifier.", + "format": "date" }, "encryption_algorithm": { "type": "string",