Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generated/java/datadoc-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<groupId>no.ssb.dapla.metadata</groupId>
<artifactId>datadoc-model</artifactId>
<packaging>jar</packaging>
<version>1.5-SNAPSHOT</version>
<version>1.7-SNAPSHOT</version>
<name>datadoc-model</name>
<url>http://maven.apache.org</url>

Expand Down
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: 2025-09-03T10:05:55+00:00
# timestamp: 2025-12-03T08:30:17+00:00

from __future__ import annotations

Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
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: 2025-09-03T10:05:57+00:00
# timestamp: 2025-12-03T08:30:19+00:00

from __future__ import annotations

Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion generated/python/datadoc_model/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/datadoc/datadoc-json-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
Loading