Skip to content

Commit a04b301

Browse files
authored
Merge pull request #81 from statisticsnorway/fix/fix-version
Remove date formatting on stable_identifier_version
2 parents 6216bfe + 2d21418 commit a04b301

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

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

Lines changed: 4 additions & 4 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-12-03T08:52:42+00:00
3+
# timestamp: 2025-12-03T12:35:19+00:00
44

55
from __future__ import annotations
66

@@ -88,7 +88,7 @@ class Pseudonymization(DatadocBaseModel):
8888
description="Type of stable identifier the variable was mapped to prior to pseudonymization.",
8989
title="Stable identifier type",
9090
)
91-
stable_identifier_version: Optional[date] = Field(
91+
stable_identifier_version: Optional[str] = Field(
9292
None,
9393
description="Version of stable identifier the variable was mapped to prior to pseudonymization.",
9494
title="Stable identifier version",
@@ -388,8 +388,8 @@ class DatadocMetadata(DatadocBaseModel):
388388
percentage_complete: Optional[int] = Field(
389389
None, description="Percentage of obligatory metadata fields populated."
390390
)
391-
document_version: Literal["6.1.1"] = Field(
392-
"6.1.1", description="Version of this model"
391+
document_version: Literal["6.1.2"] = Field(
392+
"6.1.2", description="Version of this model"
393393
)
394394
dataset: Optional[Dataset] = None
395395
variables: Optional[list[Variable]] = None

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

Lines changed: 4 additions & 4 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-12-03T08:52:44+00:00
3+
# timestamp: 2025-12-03T12:35:21+00:00
44

55
from __future__ import annotations
66

@@ -88,7 +88,7 @@ class Pseudonymization(DatadocBaseModel):
8888
description="Type of stable identifier the variable was mapped to prior to pseudonymization.",
8989
title="Stable identifier type",
9090
)
91-
stable_identifier_version: Optional[date] = Field(
91+
stable_identifier_version: Optional[str] = Field(
9292
None,
9393
description="Version of stable identifier the variable was mapped to prior to pseudonymization.",
9494
title="Stable identifier version",
@@ -380,8 +380,8 @@ class DatadocMetadata(DatadocBaseModel):
380380
percentage_complete: Optional[int] = Field(
381381
None, description="Percentage of obligatory metadata fields populated."
382382
)
383-
document_version: Literal["6.1.1"] = Field(
384-
"6.1.1", description="Version of this model"
383+
document_version: Literal["6.1.2"] = Field(
384+
"6.1.2", description="Version of this model"
385385
)
386386
dataset: Dataset
387387
variables: list[Variable]

generated/python/datadoc_model/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ssb-datadoc-model"
3-
version = "8.0.2"
3+
version = "8.0.3"
44
description = "Data Model for use in Statistics Norway's Metadata system"
55
authors = [{ name = "Statistics Norway", email = "metadata@ssb.no" }]
66
license = "MIT"

src/datadoc/datadoc-json-schema.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"document_version": {
1212
"description": "Version of this model",
13-
"const": "6.1.1"
13+
"const": "6.1.2"
1414
},
1515
"dataset": {
1616
"type": "object",
@@ -292,8 +292,7 @@
292292
"type": "string",
293293
"title": "Stable identifier version",
294294
"description": "Version of stable identifier the variable was mapped to prior to pseudonymization.",
295-
"$comment": "Only relevant when the variable is mapped to a stable identifier.",
296-
"format": "date"
295+
"$comment": "Only relevant when the variable is mapped to a stable identifier."
297296
},
298297
"encryption_algorithm": {
299298
"type": "string",

0 commit comments

Comments
 (0)