diff --git a/generated/java/datadoc-model/pom.xml b/generated/java/datadoc-model/pom.xml index c48569d..db082f1 100644 --- a/generated/java/datadoc-model/pom.xml +++ b/generated/java/datadoc-model/pom.xml @@ -3,7 +3,7 @@ no.ssb.dapla.metadata datadoc-model jar - 1.5-SNAPSHOT + 1.7-SNAPSHOT datadoc-model http://maven.apache.org 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..cac3925 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:30:17+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..da70cc5 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:30:19+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 a3984d8..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 = "7.0.2" +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..c0641e3 100644 --- a/src/datadoc/datadoc-json-schema.json +++ b/src/datadoc/datadoc-json-schema.json @@ -290,6 +290,7 @@ }, "stable_identifier_version": { "type": "string", + "format": "date", "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."