@imferno/schema 2.0.0 → 2.0.1-beta.16b09ca
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/schemas/imf-report.json +36 -4
- package/schemas/packing-list.json +1 -1
- package/schemas/validation-report.json +13 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @imferno/schema
|
|
2
2
|
|
|
3
|
-
JSON Schema definitions for SMPTE ST 2067 (IMF) types. Use these schemas to validate the JSON output from [`imferno`](https://www.npmjs.com/package/imferno)
|
|
3
|
+
JSON Schema definitions for SMPTE ST 2067 (IMF) types. Use these schemas to validate the JSON output from [`imferno`](https://www.npmjs.com/package/imferno), [`@imferno/wasm`](https://www.npmjs.com/package/@imferno/wasm), or [`@imferno/node`](https://www.npmjs.com/package/@imferno/node).
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
package/package.json
CHANGED
package/schemas/imf-report.json
CHANGED
|
@@ -272,15 +272,38 @@
|
|
|
272
272
|
"type"
|
|
273
273
|
],
|
|
274
274
|
"properties": {
|
|
275
|
+
"channelCount": {
|
|
276
|
+
"description": "Audio channel count (e.g. 2, 6, 8) — only for audio sequences",
|
|
277
|
+
"type": [
|
|
278
|
+
"integer",
|
|
279
|
+
"null"
|
|
280
|
+
],
|
|
281
|
+
"format": "uint32",
|
|
282
|
+
"minimum": 0.0
|
|
283
|
+
},
|
|
275
284
|
"id": {
|
|
276
285
|
"type": "string"
|
|
277
286
|
},
|
|
287
|
+
"language": {
|
|
288
|
+
"description": "RFC 5646 language tag extracted from the essence descriptor (e.g. \"en\", \"fr\")",
|
|
289
|
+
"type": [
|
|
290
|
+
"string",
|
|
291
|
+
"null"
|
|
292
|
+
]
|
|
293
|
+
},
|
|
278
294
|
"resources": {
|
|
279
295
|
"type": "array",
|
|
280
296
|
"items": {
|
|
281
297
|
"$ref": "#/definitions/CplResource"
|
|
282
298
|
}
|
|
283
299
|
},
|
|
300
|
+
"soundfield": {
|
|
301
|
+
"description": "MCA soundfield label (e.g. \"5.1\", \"7.1\", \"Atmos\") — only for audio sequences",
|
|
302
|
+
"type": [
|
|
303
|
+
"string",
|
|
304
|
+
"null"
|
|
305
|
+
]
|
|
306
|
+
},
|
|
284
307
|
"trackId": {
|
|
285
308
|
"type": "string"
|
|
286
309
|
},
|
|
@@ -290,15 +313,24 @@
|
|
|
290
313
|
}
|
|
291
314
|
}
|
|
292
315
|
},
|
|
316
|
+
"ImfUuid": {
|
|
317
|
+
"description": "A SMPTE IMF UUID, serialised as a bare UUID string (e.g. \"0eb3d1b9-b77b-4d3f-bbe5-7c69b15dca85\")",
|
|
318
|
+
"type": "string",
|
|
319
|
+
"format": "uuid"
|
|
320
|
+
},
|
|
293
321
|
"Location": {
|
|
294
322
|
"description": "Location where the issue was found",
|
|
295
323
|
"type": "object",
|
|
296
324
|
"properties": {
|
|
297
325
|
"cpl_id": {
|
|
298
326
|
"description": "CPL UUID if applicable",
|
|
299
|
-
"
|
|
300
|
-
|
|
301
|
-
|
|
327
|
+
"anyOf": [
|
|
328
|
+
{
|
|
329
|
+
"$ref": "#/definitions/ImfUuid"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"type": "null"
|
|
333
|
+
}
|
|
302
334
|
]
|
|
303
335
|
},
|
|
304
336
|
"file": {
|
|
@@ -495,7 +527,7 @@
|
|
|
495
527
|
]
|
|
496
528
|
},
|
|
497
529
|
"code": {
|
|
498
|
-
"description": "Error code (e.g., \"
|
|
530
|
+
"description": "Error code (e.g., \"ST2067-2:2020:8.3/FileNotFound\")",
|
|
499
531
|
"type": "string"
|
|
500
532
|
},
|
|
501
533
|
"context": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"definitions": {
|
|
53
53
|
"AssetHash": {
|
|
54
|
-
"description": "A decoded asset hash from a Packing List, per SMPTE ST 2067-2 §9.\n\nPKL files carry base64-encoded SHA-1 digests for each tracked asset.",
|
|
54
|
+
"description": "A decoded asset hash from a Packing List, per SMPTE ST 2067-2 §9.\n\nPKL files carry base64-encoded SHA-1 or SHA-256 digests for each tracked asset.",
|
|
55
55
|
"type": "object",
|
|
56
56
|
"required": [
|
|
57
57
|
"algorithm",
|
|
@@ -159,15 +159,24 @@
|
|
|
159
159
|
}
|
|
160
160
|
]
|
|
161
161
|
},
|
|
162
|
+
"ImfUuid": {
|
|
163
|
+
"description": "A SMPTE IMF UUID, serialised as a bare UUID string (e.g. \"0eb3d1b9-b77b-4d3f-bbe5-7c69b15dca85\")",
|
|
164
|
+
"type": "string",
|
|
165
|
+
"format": "uuid"
|
|
166
|
+
},
|
|
162
167
|
"Location": {
|
|
163
168
|
"description": "Location where the issue was found",
|
|
164
169
|
"type": "object",
|
|
165
170
|
"properties": {
|
|
166
171
|
"cpl_id": {
|
|
167
172
|
"description": "CPL UUID if applicable",
|
|
168
|
-
"
|
|
169
|
-
|
|
170
|
-
|
|
173
|
+
"anyOf": [
|
|
174
|
+
{
|
|
175
|
+
"$ref": "#/definitions/ImfUuid"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "null"
|
|
179
|
+
}
|
|
171
180
|
]
|
|
172
181
|
},
|
|
173
182
|
"file": {
|
|
@@ -279,7 +288,7 @@
|
|
|
279
288
|
]
|
|
280
289
|
},
|
|
281
290
|
"code": {
|
|
282
|
-
"description": "Error code (e.g., \"
|
|
291
|
+
"description": "Error code (e.g., \"ST2067-2:2020:8.3/FileNotFound\")",
|
|
283
292
|
"type": "string"
|
|
284
293
|
},
|
|
285
294
|
"context": {
|