Skip to content

Commit d926140

Browse files
committed
Merge branch '136-173-datasets-duo-schemas' into 145-update-grant-values
2 parents 210d2ee + f5bc2a6 commit d926140

File tree

8 files changed

+1332
-266
lines changed

8 files changed

+1332
-266
lines changed

all_valid_values.csv

Lines changed: 262 additions & 262 deletions
Large diffs are not rendered by default.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"title": "MC2 Example CA987654 AR-DUO schema",
4+
"$id": "Multi Consortia Coordinating Center-CA987654-duoCodeAR-10.0.0",
5+
"description": "This example schema defines how DUO should be used for MC2 Center Synapse projects.",
6+
"allOf": [
7+
{
8+
"if": {
9+
"properties": {
10+
"duoCodes": {
11+
"type": "array",
12+
"items": {
13+
"type": "string"
14+
},
15+
"contains": {
16+
"const": "RTN"
17+
}
18+
}
19+
}
20+
},
21+
"then": {
22+
"properties": {
23+
"_accessRequirementIds": {
24+
"type": "array",
25+
"items": {
26+
"type": "string"
27+
},
28+
"contains": {
29+
"const": 0
30+
}
31+
}
32+
}
33+
}
34+
},
35+
{
36+
"if": {
37+
"properties": {
38+
"duoCodes": {
39+
"type": "array",
40+
"items": {
41+
"type": "string"
42+
},
43+
"contains": {
44+
"const": "NPU"
45+
}
46+
}
47+
}
48+
},
49+
"then": {
50+
"properties": {
51+
"_accessRequirementIds": {
52+
"type": "array",
53+
"items": {
54+
"type": "string"
55+
},
56+
"contains": {
57+
"const": 0
58+
}
59+
}
60+
}
61+
}
62+
}
63+
]
64+
}

0 commit comments

Comments
 (0)