Skip to content

Commit 831a3b1

Browse files
committed
Fixed Privilege schema, and added a test
1 parent fdc8689 commit 831a3b1

15 files changed

+26
-6
lines changed

json-schemas/2.0.x/admin/privilege.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@
8686
],
8787
"minLength": 7
8888
}
89-
}
89+
},
90+
"required": ["role", "community_id"],
91+
"additionalProperties": false
9092
},
9193
{
9294
"properties": {
@@ -106,7 +108,9 @@
106108
],
107109
"minLength": 1
108110
}
109-
}
111+
},
112+
"required": [ "role", "benchmarking_event_id" ],
113+
"additionalProperties": false
110114
},
111115
{
112116
"properties": {
@@ -126,18 +130,19 @@
126130
],
127131
"minLength": 1
128132
}
129-
}
133+
},
134+
"required": [ "role", "challenge_id" ],
135+
"additionalProperties": false
130136
}
131-
132-
],
133-
"additionalProperties": false
137+
]
134138
}
135139
}
136140
},
137141
"unevaluatedProperties": false,
138142
"required": [
139143
"_id",
140144
"_schema",
145+
"_provenance",
141146
"roles"
142147
],
143148
"dependencies": {}

prototype-data/2.0.x/CAMEO/BenchmarkingEvent.json

100755100644
File mode changed.

prototype-data/2.0.x/CAMEO/Challenge.json

100755100644
File mode changed.

prototype-data/2.0.x/CAMEO/Community.json

100755100644
File mode changed.

prototype-data/2.0.x/CAMEO/Contacts/CAMEO_contact1.json

100755100644
File mode changed.

prototype-data/2.0.x/CAMEO/Contacts/CAMEO_contact2.json

100755100644
File mode changed.

prototype-data/2.0.x/CAMEO/Contacts/CAMEO_contact3.json

100755100644
File mode changed.

prototype-data/2.0.x/CAMEO/Metrics/CAMEO_metrics_QS-score.json

100755100644
File mode changed.

prototype-data/2.0.x/CAMEO/Metrics/CAMEO_metrics_lDDT.json

100755100644
File mode changed.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"_id": "orcid:0000-0002-6813-3200",
3+
"roles": [
4+
{
5+
"role": "owner",
6+
"community_id": "OEBC008"
7+
}
8+
],
9+
"_schema": "https://w3id.org/openebench/scientific-schemas/2.0/Privilege",
10+
"_provenance": {
11+
"orcid": "orcid:0000-0001-6415-0532",
12+
"created": "2026-02-23T17:24:27Z",
13+
"updated": "2026-02-23T17:24:27Z"
14+
}
15+
}

0 commit comments

Comments
 (0)