From 875071ba75649d20c243706a85b44738ad5e81f9 Mon Sep 17 00:00:00 2001 From: Ludee Date: Tue, 15 Oct 2024 17:50:55 +0200 Subject: [PATCH 1/6] Add format #146 --- metadata/v200_draft/build_source/schemas/general.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/metadata/v200_draft/build_source/schemas/general.json b/metadata/v200_draft/build_source/schemas/general.json index d1499867..91ba6885 100644 --- a/metadata/v200_draft/build_source/schemas/general.json +++ b/metadata/v200_draft/build_source/schemas/general.json @@ -135,7 +135,8 @@ "null" ], "badge": "Bronze", - "title": "Embargo Period Start" + "title": "Embargo Period Start", + "format": "date" }, "end": { "description": "The end date of the embargo period. This is the intended publication date.", @@ -145,7 +146,8 @@ "null" ], "badge": "Bronze", - "title": "Embargo Period End (Publication Date)" + "title": "Embargo Period End (Publication Date)", + "format": "date" }, "isActive": { "description": "A boolean key that indicates if the embargo period is currently active. Must be changed to False on the embargo period end date.", From a43b7ddfb9dc1ed125be2e1d4c443ce90a8c5ec1 Mon Sep 17 00:00:00 2001 From: Ludee Date: Tue, 15 Oct 2024 17:51:13 +0200 Subject: [PATCH 2/6] Add format #146 --- metadata/v200_draft/build_source/schemas/general_collection.json | 1 + 1 file changed, 1 insertion(+) diff --git a/metadata/v200_draft/build_source/schemas/general_collection.json b/metadata/v200_draft/build_source/schemas/general_collection.json index 59f7dd0d..0353e4ea 100644 --- a/metadata/v200_draft/build_source/schemas/general_collection.json +++ b/metadata/v200_draft/build_source/schemas/general_collection.json @@ -32,6 +32,7 @@ ], "badge": "Silver", "title": "Collection identifier", + "format": "uri", "readonly": true } }, From 213f39049c1c5a406c4320fd496c970d85e95e9c Mon Sep 17 00:00:00 2001 From: Ludee Date: Tue, 15 Oct 2024 17:51:28 +0200 Subject: [PATCH 3/6] Add format #146 --- metadata/v200_draft/build_source/schemas/licences.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/metadata/v200_draft/build_source/schemas/licences.json b/metadata/v200_draft/build_source/schemas/licences.json index 3a1b2a91..57c7ef96 100644 --- a/metadata/v200_draft/build_source/schemas/licences.json +++ b/metadata/v200_draft/build_source/schemas/licences.json @@ -38,7 +38,8 @@ "null" ], "badge": "Bronze", - "title": "Path" + "title": "Path", + "format": "uri" }, "instruction": { "description": "A short description of rights and restrictions. The use of tl;drLegal is recommended.", @@ -51,7 +52,7 @@ "title": "Instruction" }, "attribution": { - "description": "The copyrightholder of the data set. If attribution licenses are used, that name must be acknowledged.", + "description": "The copyright holder of the data set. If attribution licenses are used, that name must be acknowledged.", "example": "© Reiner Lemoine Institut", "type": [ "string", From 02335598ac6c35951609542b6716f4f3aed5d544 Mon Sep 17 00:00:00 2001 From: Ludee Date: Tue, 15 Oct 2024 17:51:35 +0200 Subject: [PATCH 4/6] Add format #146 --- metadata/v200_draft/build_source/schemas/meta.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/metadata/v200_draft/build_source/schemas/meta.json b/metadata/v200_draft/build_source/schemas/meta.json index 9aa73454..4c68d2b9 100644 --- a/metadata/v200_draft/build_source/schemas/meta.json +++ b/metadata/v200_draft/build_source/schemas/meta.json @@ -15,7 +15,7 @@ "null" ], "badge": null, - "title": "Metadata version" + "title": "Metadata Version" }, "metadataLicense": { "description": "Object describing the license of the provided metadata.", @@ -49,11 +49,12 @@ "null" ], "badge": null, - "title": "Path" + "title": "Path", + "format": "uri" } }, "badge": null, - "title": "Metadata license" + "title": "Metadata License" } }, "title": "Meta Metadata", From e93b24d0e47177b82e5b97e4b264110c260daa57 Mon Sep 17 00:00:00 2001 From: Ludee Date: Tue, 15 Oct 2024 17:51:58 +0200 Subject: [PATCH 5/6] Add format #146 --- metadata/v200_draft/build_source/schemas/provenance.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/metadata/v200_draft/build_source/schemas/provenance.json b/metadata/v200_draft/build_source/schemas/provenance.json index e561b58b..72ba1508 100644 --- a/metadata/v200_draft/build_source/schemas/provenance.json +++ b/metadata/v200_draft/build_source/schemas/provenance.json @@ -61,17 +61,18 @@ "title": "Roles" }, "date": { - "description": "Date of the contribution. If the contribution took more than a day, use the date of the final contribiution. Date Format is ISO 8601.", + "description": "The date of the final contribution. Date Format is ISO 8601.", "example": "2016-06-16", "type": [ "string", "null" ], "badge": null, - "title": "Date" + "title": "Date", + "format": "date" }, "object": { - "description": "Target of contribution. Which part of the package was supplied/changed.", + "description": "Target of contribution. Which part of the package was supplied or changed.", "example": "data and metadata", "type": [ "string", @@ -82,7 +83,7 @@ }, "comment": { "description": "Free text comment on what has been done.", - "example": "Fix typo in the title.", + "example": "Add general context.", "type": [ "string", "null" From 77af095dbea68d469c7f946270a33a6b4eb67b44 Mon Sep 17 00:00:00 2001 From: Ludee Date: Tue, 15 Oct 2024 17:55:50 +0200 Subject: [PATCH 6/6] Update changelog #146 --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c644fb8..83dddc2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,8 @@ Here is a template for new release sections - Add key nullable to fields section (columns) [(#161)](https://github.com/OpenEnergyPlatform/oemetadata/pull/161) +- Add explicit json types [(#166)](https://github.com/OpenEnergyPlatform/oemetadata/pull/166) + ### Changed - Remove comment field as it holds information on how to fill out the metadata and therefore should not be part of the actual oemetadata but the documentation. [#???](https://github.com/OpenEnergyPlatform/oemetadata/pull/)