-
Notifications
You must be signed in to change notification settings - Fork 94
/
Copy pathpublishing.schema.json
59 lines (59 loc) · 2.27 KB
/
publishing.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"$schema": "https://json-schema.org/draft/2019-09/hyper-schema#",
"title": "Dataset Publishing State Aspect",
"description": "Specifies the state and other metadata associated with publication of data within MAGDA system.",
"type": "object",
"properties": {
"state": {
"title": "State of dataset",
"type": "string",
"default": "published",
"enum": ["draft", "published", "archived"]
},
"hasEverPublished": {
"title": "Has ever published",
"description": "Whether the dataset has ever been published before. If `true`, editing workflow UI (rather than creation workflow) will be shown.",
"type": "boolean",
"default": false
},
"custodianOrgUnitId": {
"title": "the id of organisational unit that should be referenced as the data custodian",
"type": "string",
"minLength": 36,
"maxLength": 36
},
"managingOrgUnitId": {
"title": "the id of organisational unit that is responsible for maintaining this dataset",
"type": "string",
"minLength": 36,
"maxLength": 36
},
"level": {
"title": "Level dataset is visible at",
"type": "string",
"default": "organization",
"enum": [
"organization",
"custodian",
"team",
"creatorOrgUnit",
"selectedOrgUnit"
]
},
"contactPointDisplay": {
"title": "What should be shown for the contact point(s) of a dataset",
"type": "string",
"enum": ["team", "organization", "custodian"]
},
"publishAsOpenData": {
"title": "The open data platforms that this should be published on",
"description": "A map of ids of open data portals to a boolean of whether or not they should be published on that platform. It's assumed that the absence of a platform means that it shouldn't be published on that platform.",
"type": "object",
"patternProperties": {
".{1,}": {
"type": "boolean"
}
}
}
}
}