Debian Codegraph @

pyDataverse/schemas/json/datafile_upload_schema.json

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