Skip to content

Commit

Permalink
Merge pull request #166 from OpenEnergyPlatform/feature-146-json-format
Browse files Browse the repository at this point in the history
Add explicit json types #146
  • Loading branch information
jh-RLI authored Oct 16, 2024
2 parents 6674cc6 + 77af095 commit ff30176
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
6 changes: 4 additions & 2 deletions metadata/v200_draft/build_source/schemas/general.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand All @@ -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.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
],
"badge": "Silver",
"title": "Collection identifier",
"format": "uri",
"readonly": true
}
},
Expand Down
5 changes: 3 additions & 2 deletions metadata/v200_draft/build_source/schemas/licences.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand All @@ -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",
Expand Down
7 changes: 4 additions & 3 deletions metadata/v200_draft/build_source/schemas/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"null"
],
"badge": null,
"title": "Metadata version"
"title": "Metadata Version"
},
"metadataLicense": {
"description": "Object describing the license of the provided metadata.",
Expand Down Expand Up @@ -49,11 +49,12 @@
"null"
],
"badge": null,
"title": "Path"
"title": "Path",
"format": "uri"
}
},
"badge": null,
"title": "Metadata license"
"title": "Metadata License"
}
},
"title": "Meta Metadata",
Expand Down
9 changes: 5 additions & 4 deletions metadata/v200_draft/build_source/schemas/provenance.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down

0 comments on commit ff30176

Please sign in to comment.