@@ -72,6 +72,7 @@ def metadata_basic() -> Dict[str, Any]:
7272 "name" : "A_last, A_first" ,
7373 "email" : "nemo@example.com" ,
7474 "roleName" : [RoleType ("dcite:ContactPerson" )],
75+ "schemaKey" : "Person" ,
7576 }
7677 ],
7778 "license" : [LicenseType ("spdx:CC-BY-4.0" )],
@@ -195,12 +196,18 @@ def test_datacite(dandi_id: str, schema: Any) -> None:
195196 {
196197 "name" : "A_last, A_first" ,
197198 "roleName" : [RoleType ("dcite:ContactPerson" )],
199+ "email" : "nemo@example.com" ,
200+ "schemaKey" : "Person" ,
198201 },
199202 {
200203 "name" : "B_last, B_first" ,
201204 "roleName" : [RoleType ("dcite:Author" )],
205+ "schemaKey" : "Person" ,
206+ },
207+ {
208+ "name" : "C_last, C_first" ,
209+ "schemaKey" : "Person" ,
202210 },
203- {"name" : "C_last, C_first" },
204211 ],
205212 },
206213 {
@@ -218,10 +225,13 @@ def test_datacite(dandi_id: str, schema: Any) -> None:
218225 {
219226 "name" : "A_last, A_first" ,
220227 "roleName" : [RoleType ("dcite:ContactPerson" )],
228+ "email" : "nemo@example.com" ,
229+ "schemaKey" : "Person" ,
221230 },
222231 {
223232 "name" : "B_last, B_first" ,
224233 "roleName" : [RoleType ("dcite:Sponsor" )],
234+ "schemaKey" : "Person" ,
225235 },
226236 ],
227237 },
@@ -237,11 +247,14 @@ def test_datacite(dandi_id: str, schema: Any) -> None:
237247 {
238248 "name" : "A_last, A_first" ,
239249 "roleName" : [RoleType ("dcite:ContactPerson" )],
250+ "email" : "nemo@example.com" ,
251+ "schemaKey" : "Person" ,
240252 },
241253 {
242254 "name" : "B_last, B_first" ,
243255 "identifier" : "0000-0001-0000-0000" ,
244256 "roleName" : [RoleType ("dcite:Sponsor" )],
257+ "schemaKey" : "Person" ,
245258 },
246259 ],
247260 },
@@ -264,11 +277,14 @@ def test_datacite(dandi_id: str, schema: Any) -> None:
264277 {
265278 "name" : "A_last, A_first" ,
266279 "roleName" : [RoleType ("dcite:ContactPerson" )],
280+ "email" : "nemo@example.com" ,
281+ "schemaKey" : "Person" ,
267282 },
268283 {
269284 "name" : "B_last, B_first" ,
270285 "identifier" : "0000-0001-0000-0000" ,
271286 "roleName" : [RoleType ("dcite:Funder" )],
287+ "schemaKey" : "Person" ,
272288 },
273289 ],
274290 },
@@ -297,10 +313,13 @@ def test_datacite(dandi_id: str, schema: Any) -> None:
297313 RoleType ("dcite:Software" ),
298314 ],
299315 "identifier" : "0000-0001-0000-0000" ,
316+ "schemaKey" : "Person" ,
300317 },
301318 {
302319 "name" : "B_last, B_first" ,
303320 "roleName" : [RoleType ("dcite:ContactPerson" )],
321+ "email" : "nemo@example.com" ,
322+ "schemaKey" : "Person" ,
304323 },
305324 ],
306325 },
0 commit comments