Skip to content

Commit

Permalink
Added 'customType' attribute to dataset.
Browse files Browse the repository at this point in the history
  • Loading branch information
BjornRoarJoneid authored Feb 6, 2024
1 parent a19c25b commit 4343f38
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions src/datadoc/datadoc-json-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,36 @@
"description": "Description of the data set's spatial coverage",
"$ref": "./no/languageStringType.json#/languageStringType"
},
"custom_type": {
"title": "Custom type for dataset metadata",
"description": "Extend the DataDoc model by adding custom metadata elements as key-value-pairs (string, array og objects).",
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"title": "Key",
"description": "Custom type KEY",
"type": "string"
},
"value": {
"title": "Value",
"description": "Custom type VALUE (of type string, array or object).",
"oneOf": [
{
"type": "string"
},
{
"type": "array"
},
{
"type": "object"
}
]
}
}
}
},
"id": {
"title": "Identifier",
"description": "Unique identifier for the data set",
Expand Down Expand Up @@ -319,7 +349,7 @@
"items": {
"type": "object",
"properties": {
"code":{
"code": {
"title": "Code",
"description": "Other value code",
"type": "string"
Expand Down Expand Up @@ -387,4 +417,4 @@
"dataset",
"variables"
]
}
}

0 comments on commit 4343f38

Please sign in to comment.