Skip to content

Commit 999016e

Browse files
author
Jorgen-5
committed
Updated use restriction
1 parent c367ca7 commit 999016e

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed

src/datadoc/datadoc-json-schema.json

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,29 @@
8989
"$ref": "./languageStringType.json#/languageStringType"
9090
},
9191
"use_restriction": {
92-
"title": "Use restriction",
93-
"description": "Data set use restriction",
94-
"type": "string",
95-
"enum": [
96-
"DELETION_ANONYMIZATION",
97-
"PROCESS_LIMITATIONS",
98-
"SECONDARY_USE_RESTRICTIONS"
99-
]
100-
},
101-
"use_restriction_date": {
102-
"title": "Use restriction date",
103-
"description": "Use restriction date, eg. the date (deadline) for when data must be deleted/anonymised.",
104-
"type": "string",
105-
"format": "date-time"
92+
"title": "Use restriction",
93+
"description": "Use restriction",
94+
"type": "array",
95+
"items": {
96+
"type": "object",
97+
"properties": {
98+
"use_restriction": {
99+
"title": "Use restriction type",
100+
"description": "Use restriction",
101+
"enum": [
102+
"DELETION_ANONYMIZATION",
103+
"PROCESS_LIMITATIONS",
104+
"SECONDARY_USE_RESTRICTIONS"
105+
]
106+
},
107+
"use_restriction_date": {
108+
"title": "Use restriction date",
109+
"description": "Use restriction date, eg. the date (deadline) for when data must be deleted/anonymised.",
110+
"type": "string",
111+
"format": "date-time"
112+
}
113+
}
114+
}
106115
},
107116
"custom_type": {
108117
"title": "Custom type for dataset metadata",

0 commit comments

Comments
 (0)