| 1 |
{ |
| 2 |
"$schema": "http://json-schema.org/draft-07/schema", |
| 3 |
"$id": "https://github.com/GDCC/pyDataverse/schemas/json/dataverse_upload_schema.json", |
| 4 |
"type": "object", |
| 5 |
"title": "Dataverse JSON upload schema", |
| 6 |
"description": "Describes the full Dataverse metadata JSON file structure for a Dataverse API upload.", |
| 7 |
"required": [ |
| 8 |
"name", |
| 9 |
"alias", |
| 10 |
"dataverseContacts" |
| 11 |
], |
| 12 |
"additionalProperties": false, |
| 13 |
"properties": { |
| 14 |
"name": { |
| 15 |
"$id": "#/properties/name", |
| 16 |
"type": "string" |
| 17 |
}, |
| 18 |
"alias": { |
| 19 |
"$id": "#/properties/alias", |
| 20 |
"type": "string" |
| 21 |
}, |
| 22 |
"dataverseContacts": { |
| 23 |
"$id": "#/properties/dataverseContacts", |
| 24 |
"type": "array", |
| 25 |
"additionalItems": false, |
| 26 |
"items": { |
| 27 |
"anyOf": [ |
| 28 |
{ |
| 29 |
"$id": "#/properties/dataverseContacts/items/anyOf/0", |
| 30 |
"type": "object", |
| 31 |
"required": [ |
| 32 |
"contactEmail" |
| 33 |
], |
| 34 |
"additionalProperties": false, |
| 35 |
"properties": { |
| 36 |
"contactEmail": { |
| 37 |
"$id": "#/properties/dataverseContacts/items/anyOf/0/properties/contactEmail", |
| 38 |
"type": "string" |
| 39 |
} |
| 40 |
} |
| 41 |
} |
| 42 |
], |
| 43 |
"$id": "#/properties/dataverseContacts/items" |
| 44 |
} |
| 45 |
}, |
| 46 |
"affiliation": { |
| 47 |
"$id": "#/properties/affiliation", |
| 48 |
"type": "string" |
| 49 |
}, |
| 50 |
"description": { |
| 51 |
"$id": "#/properties/description", |
| 52 |
"type": "string" |
| 53 |
}, |
| 54 |
"dataverseType": { |
| 55 |
"$id": "#/properties/dataverseType", |
| 56 |
"type": "string" |
| 57 |
} |
| 58 |
} |
| 59 |
} |