-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfileformats_master.schema.json
152 lines (152 loc) · 4.37 KB
/
fileformats_master.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "fileformats-master",
"type": "object",
"additionalProperties": false,
"properties": {
"*": {
"description": "An Action object that contains ground rules for all files.",
"$ref": "#/definitions/action"
},
"!empty": {
"description": "An Action object for empty files.",
"$ref": "#/definitions/action"
},
"!binary": {
"description": "An Action object for the file class 'binary'.",
"$ref": "#/definitions/action"
},
"!aggregate": {
"description": "An Action object for the file class 'aggregate'.",
"$ref": "#/definitions/action"
},
"!audio": {
"description": "An Action object for the file class 'audio'.",
"$ref": "#/definitions/action"
},
"!database": {
"description": "An Action object for the file class 'database'.",
"$ref": "#/definitions/action"
},
"!dataset": {
"description": "An Action object for the file class 'dataset'.",
"$ref": "#/definitions/action"
},
"!email": {
"description": "An Action object for the file class 'email'.",
"$ref": "#/definitions/action"
},
"!font": {
"description": "An Action object for the file class 'font'.",
"$ref": "#/definitions/action"
},
"!gis": {
"description": "An Action object for the file class 'gis'.",
"$ref": "#/definitions/action"
},
"!image (raster)": {
"description": "An Action object for the file class 'image (raster)'.",
"$ref": "#/definitions/action"
},
"!image (vector)": {
"description": "An Action object for the file class 'image (vector)'.",
"$ref": "#/definitions/action"
},
"!model": {
"description": "An Action object for the file class 'model'.",
"$ref": "#/definitions/action"
},
"!page description": {
"description": "An Action object for the file class 'page description'.",
"$ref": "#/definitions/action"
},
"!presentation": {
"description": "An Action object for the file class 'presentation'.",
"$ref": "#/definitions/action"
},
"!spreadsheet": {
"description": "An Action object for the file class 'spreadsheet'.",
"$ref": "#/definitions/action"
},
"!text (mark-up)": {
"description": "An Action object for the file class 'text (mark-up)'.",
"$ref": "#/definitions/action"
},
"!text (structured)": {
"description": "An Action object for the file class 'text (structured)'.",
"$ref": "#/definitions/action"
},
"!text (unstructured)": {
"description": "An Action object for the file class 'text (unstructured)'.",
"$ref": "#/definitions/action"
},
"!video": {
"description": "An Action object for the file class 'video'.",
"$ref": "#/definitions/action"
},
"!word processor": {
"description": "An Action object for the file class 'word processor'.",
"$ref": "#/definitions/action"
}
},
"patternProperties": {
"^[a-zA-Z0-9_/-]+$": {
"$ref": "#/definitions/action"
}
},
"definitions": {
"action": {
"type": "object",
"additionalProperties": false,
"required": ["access", "statutory"],
"properties": {
"name": {
"description": "The long name of the file format.",
"type": "string"
},
"access": {
"description": "Instructions to convert file to access format.",
"$ref": "#/definitions/convert"
},
"statutory": {
"description": "Instructions to convert file to statutory format.",
"$ref": "#/definitions/convert"
}
}
},
"convert": {
"description": "Instructions to convert the file.",
"type": "object",
"required": [
"tool"
],
"if": {
"properties": {
"tool": {
"not": {
"enum": [
"copy"
]
}
}
}
},
"then": {
"required": [
"output"
]
},
"properties": {
"tool": {
"description": "The converter tool to use.",
"type": "string"
},
"output": {
"description": "The output taget for the converter.",
"type": "string",
"pattern": "^[a-z0-9-]+$"
}
}
}
}
}