@imferno/schema 3.0.2-beta.40c3306 → 3.0.2-beta.4e10253
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 +2 -0
- package/index.d.ts +6 -0
- package/index.js +4 -0
- package/package.json +1 -1
- package/schemas/asset-map.json +21 -0
- package/schemas/composition-playlist.json +159 -0
- package/schemas/imf-report.json +268 -8
- package/schemas/imferno-package.json +3537 -0
- package/schemas/rules-config.json +1 -1
- package/schemas/validation-report.json +182 -8
- package/schemas/validation-result.json +4248 -0
package/README.md
CHANGED
|
@@ -29,6 +29,8 @@ if (validate(data)) {
|
|
|
29
29
|
|
|
30
30
|
| Export | Description |
|
|
31
31
|
|--------|-------------|
|
|
32
|
+
| `validationResult` | `{ package, validation }` as returned by `validate()` in `@imferno/node` |
|
|
33
|
+
| `imfernoPackage` | Full parsed package as returned by `parsePackage()` in `@imferno/node` |
|
|
32
34
|
| `imfReport` | Full IMF package report (metadata + validation + CPL analysis) |
|
|
33
35
|
| `validationReport` | Validation issues and diagnostics |
|
|
34
36
|
| `compositionPlaylist` | SMPTE ST 2067-3 Composition Playlist |
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/** A JSON Schema object (Draft 7). */
|
|
2
2
|
type JsonSchema = Record<string, unknown>;
|
|
3
3
|
|
|
4
|
+
/** `{ package, validation }` as returned by `validate()` in @imferno/node. */
|
|
5
|
+
export declare const validationResult: JsonSchema;
|
|
6
|
+
/** The full parsed package (`Imferno`) as returned by `parsePackage()` in @imferno/node. */
|
|
7
|
+
export declare const imfernoPackage: JsonSchema;
|
|
4
8
|
export declare const imfReport: JsonSchema;
|
|
5
9
|
export declare const validationReport: JsonSchema;
|
|
6
10
|
export declare const compositionPlaylist: JsonSchema;
|
|
@@ -10,6 +14,8 @@ export declare const volumeIndex: JsonSchema;
|
|
|
10
14
|
export declare const rulesConfig: JsonSchema;
|
|
11
15
|
|
|
12
16
|
export declare const schemas: {
|
|
17
|
+
validationResult: JsonSchema;
|
|
18
|
+
imfernoPackage: JsonSchema;
|
|
13
19
|
imfReport: JsonSchema;
|
|
14
20
|
validationReport: JsonSchema;
|
|
15
21
|
compositionPlaylist: JsonSchema;
|
package/index.js
CHANGED
|
@@ -9,6 +9,8 @@ function loadSchema(name) {
|
|
|
9
9
|
return JSON.parse(readFileSync(join(schemasDir, `${name}.json`), "utf-8"));
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
export const validationResult = loadSchema("validation-result");
|
|
13
|
+
export const imfernoPackage = loadSchema("imferno-package");
|
|
12
14
|
export const imfReport = loadSchema("imf-report");
|
|
13
15
|
export const validationReport = loadSchema("validation-report");
|
|
14
16
|
export const compositionPlaylist = loadSchema("composition-playlist");
|
|
@@ -18,6 +20,8 @@ export const volumeIndex = loadSchema("volume-index");
|
|
|
18
20
|
export const rulesConfig = loadSchema("rules-config");
|
|
19
21
|
|
|
20
22
|
export const schemas = {
|
|
23
|
+
validationResult,
|
|
24
|
+
imfernoPackage,
|
|
21
25
|
imfReport,
|
|
22
26
|
validationReport,
|
|
23
27
|
compositionPlaylist,
|
package/package.json
CHANGED
package/schemas/asset-map.json
CHANGED
|
@@ -101,11 +101,32 @@
|
|
|
101
101
|
"volumeIndex"
|
|
102
102
|
],
|
|
103
103
|
"properties": {
|
|
104
|
+
"length": {
|
|
105
|
+
"description": "`<Length>` in bytes, when present.",
|
|
106
|
+
"default": null,
|
|
107
|
+
"type": [
|
|
108
|
+
"integer",
|
|
109
|
+
"null"
|
|
110
|
+
],
|
|
111
|
+
"format": "uint64",
|
|
112
|
+
"minimum": 0.0
|
|
113
|
+
},
|
|
114
|
+
"offset": {
|
|
115
|
+
"description": "`<Offset>` in bytes, when present.",
|
|
116
|
+
"default": null,
|
|
117
|
+
"type": [
|
|
118
|
+
"integer",
|
|
119
|
+
"null"
|
|
120
|
+
],
|
|
121
|
+
"format": "uint64",
|
|
122
|
+
"minimum": 0.0
|
|
123
|
+
},
|
|
104
124
|
"path": {
|
|
105
125
|
"description": "File path relative to the IMP root directory.",
|
|
106
126
|
"type": "string"
|
|
107
127
|
},
|
|
108
128
|
"volumeIndex": {
|
|
129
|
+
"description": "`<VolumeIndex>`; 1 when absent.",
|
|
109
130
|
"type": "integer",
|
|
110
131
|
"format": "uint32",
|
|
111
132
|
"minimum": 0.0
|
|
@@ -975,6 +975,37 @@
|
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
977
|
},
|
|
978
|
+
"ExtensionSequence": {
|
|
979
|
+
"description": "A Sequence of a kind imferno does not model (ST 2067-3 §6.9.3 Extension Sequence). Every Sequence derives from SequenceType, so its Id, TrackId and Resources are kept; the element is named by `name` (local name) and `namespace` (namespace URI; null when the element has no namespace).",
|
|
980
|
+
"type": "object",
|
|
981
|
+
"required": [
|
|
982
|
+
"Id",
|
|
983
|
+
"ResourceList",
|
|
984
|
+
"TrackId"
|
|
985
|
+
],
|
|
986
|
+
"properties": {
|
|
987
|
+
"Id": {
|
|
988
|
+
"$ref": "#/definitions/ImfUuid"
|
|
989
|
+
},
|
|
990
|
+
"Name": {
|
|
991
|
+
"default": "",
|
|
992
|
+
"type": "string"
|
|
993
|
+
},
|
|
994
|
+
"Namespace": {
|
|
995
|
+
"default": null,
|
|
996
|
+
"type": [
|
|
997
|
+
"string",
|
|
998
|
+
"null"
|
|
999
|
+
]
|
|
1000
|
+
},
|
|
1001
|
+
"ResourceList": {
|
|
1002
|
+
"$ref": "#/definitions/ResourceList"
|
|
1003
|
+
},
|
|
1004
|
+
"TrackId": {
|
|
1005
|
+
"$ref": "#/definitions/ImfUuid"
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
978
1009
|
"ForcedNarrativeSequence": {
|
|
979
1010
|
"type": "object",
|
|
980
1011
|
"required": [
|
|
@@ -1353,6 +1384,21 @@
|
|
|
1353
1384
|
}
|
|
1354
1385
|
}
|
|
1355
1386
|
},
|
|
1387
|
+
"J2KCcapi": {
|
|
1388
|
+
"description": "`Ccapi` array of `J2KExtendedCapabilities`.",
|
|
1389
|
+
"type": "object",
|
|
1390
|
+
"properties": {
|
|
1391
|
+
"UInt16": {
|
|
1392
|
+
"default": [],
|
|
1393
|
+
"type": "array",
|
|
1394
|
+
"items": {
|
|
1395
|
+
"type": "integer",
|
|
1396
|
+
"format": "uint16",
|
|
1397
|
+
"minimum": 0.0
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1356
1402
|
"J2KComponentSizing": {
|
|
1357
1403
|
"description": "Individual J2K component sizing",
|
|
1358
1404
|
"type": "object",
|
|
@@ -1393,6 +1439,18 @@
|
|
|
1393
1439
|
"description": "J2K Extended Capabilities (ISO/IEC 15444-15)",
|
|
1394
1440
|
"type": "object",
|
|
1395
1441
|
"properties": {
|
|
1442
|
+
"Ccapi": {
|
|
1443
|
+
"description": "Codestream capabilities (Ccap^i), one UInt16 per Pcap bit set, in increasing order of i (ISO/IEC 15444-1 CAP marker).",
|
|
1444
|
+
"default": null,
|
|
1445
|
+
"anyOf": [
|
|
1446
|
+
{
|
|
1447
|
+
"$ref": "#/definitions/J2KCcapi"
|
|
1448
|
+
},
|
|
1449
|
+
{
|
|
1450
|
+
"type": "null"
|
|
1451
|
+
}
|
|
1452
|
+
]
|
|
1453
|
+
},
|
|
1396
1454
|
"Pcap": {
|
|
1397
1455
|
"description": "Profile capabilities (Pcap)",
|
|
1398
1456
|
"default": null,
|
|
@@ -2298,6 +2356,17 @@
|
|
|
2298
2356
|
}
|
|
2299
2357
|
]
|
|
2300
2358
|
},
|
|
2359
|
+
"LeftEye": {
|
|
2360
|
+
"description": "`LeftEye` of a `cc:StereoImageTrackFileResourceType` resource (ST 2067-2:2013, :2016 and :2020). A stereo resource carries its SourceEncoding and TrackFileId per eye, not on the resource itself.",
|
|
2361
|
+
"anyOf": [
|
|
2362
|
+
{
|
|
2363
|
+
"$ref": "#/definitions/StereoEye"
|
|
2364
|
+
},
|
|
2365
|
+
{
|
|
2366
|
+
"type": "null"
|
|
2367
|
+
}
|
|
2368
|
+
]
|
|
2369
|
+
},
|
|
2301
2370
|
"Marker": {
|
|
2302
2371
|
"default": [],
|
|
2303
2372
|
"type": "array",
|
|
@@ -2314,6 +2383,17 @@
|
|
|
2314
2383
|
"format": "uint64",
|
|
2315
2384
|
"minimum": 0.0
|
|
2316
2385
|
},
|
|
2386
|
+
"RightEye": {
|
|
2387
|
+
"description": "`RightEye` of a `cc:StereoImageTrackFileResourceType` resource.",
|
|
2388
|
+
"anyOf": [
|
|
2389
|
+
{
|
|
2390
|
+
"$ref": "#/definitions/StereoEye"
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
"type": "null"
|
|
2394
|
+
}
|
|
2395
|
+
]
|
|
2396
|
+
},
|
|
2317
2397
|
"SourceDuration": {
|
|
2318
2398
|
"default": null,
|
|
2319
2399
|
"type": [
|
|
@@ -2389,6 +2469,14 @@
|
|
|
2389
2469
|
"SequenceList": {
|
|
2390
2470
|
"type": "object",
|
|
2391
2471
|
"properties": {
|
|
2472
|
+
"ExtensionSequence": {
|
|
2473
|
+
"description": "Sequences whose element imferno does not model (ST 2067-3 §6.9.3 Extension Sequences, e.g. ST 2067-203 `MGASADMSignalSequence` or ST 2067-2 `CommentarySequence`), in document order. Filled by [`parse_cpl`] from the source XML so their EssenceDescriptor and Track File references resolve; no other rules are applied to them.",
|
|
2474
|
+
"default": [],
|
|
2475
|
+
"type": "array",
|
|
2476
|
+
"items": {
|
|
2477
|
+
"$ref": "#/definitions/ExtensionSequence"
|
|
2478
|
+
}
|
|
2479
|
+
},
|
|
2392
2480
|
"ForcedNarrativeSequence": {
|
|
2393
2481
|
"default": [],
|
|
2394
2482
|
"type": "array",
|
|
@@ -2490,6 +2578,63 @@
|
|
|
2490
2578
|
}
|
|
2491
2579
|
}
|
|
2492
2580
|
},
|
|
2581
|
+
"StereoEye": {
|
|
2582
|
+
"description": "One eye of a stereo resource: a `cpl:TrackFileResourceType` (ST 2067-2). Only the track file reference fields are kept; the eye's timing fields are checked by the XSD layer.",
|
|
2583
|
+
"type": "object",
|
|
2584
|
+
"properties": {
|
|
2585
|
+
"Hash": {
|
|
2586
|
+
"default": null,
|
|
2587
|
+
"type": [
|
|
2588
|
+
"string",
|
|
2589
|
+
"null"
|
|
2590
|
+
]
|
|
2591
|
+
},
|
|
2592
|
+
"Id": {
|
|
2593
|
+
"default": null,
|
|
2594
|
+
"anyOf": [
|
|
2595
|
+
{
|
|
2596
|
+
"$ref": "#/definitions/ImfUuid"
|
|
2597
|
+
},
|
|
2598
|
+
{
|
|
2599
|
+
"type": "null"
|
|
2600
|
+
}
|
|
2601
|
+
]
|
|
2602
|
+
},
|
|
2603
|
+
"KeyId": {
|
|
2604
|
+
"default": null,
|
|
2605
|
+
"anyOf": [
|
|
2606
|
+
{
|
|
2607
|
+
"$ref": "#/definitions/ImfUuid"
|
|
2608
|
+
},
|
|
2609
|
+
{
|
|
2610
|
+
"type": "null"
|
|
2611
|
+
}
|
|
2612
|
+
]
|
|
2613
|
+
},
|
|
2614
|
+
"SourceEncoding": {
|
|
2615
|
+
"default": null,
|
|
2616
|
+
"anyOf": [
|
|
2617
|
+
{
|
|
2618
|
+
"$ref": "#/definitions/ImfUuid"
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
"type": "null"
|
|
2622
|
+
}
|
|
2623
|
+
]
|
|
2624
|
+
},
|
|
2625
|
+
"TrackFileId": {
|
|
2626
|
+
"default": null,
|
|
2627
|
+
"anyOf": [
|
|
2628
|
+
{
|
|
2629
|
+
"$ref": "#/definitions/ImfUuid"
|
|
2630
|
+
},
|
|
2631
|
+
{
|
|
2632
|
+
"type": "null"
|
|
2633
|
+
}
|
|
2634
|
+
]
|
|
2635
|
+
}
|
|
2636
|
+
}
|
|
2637
|
+
},
|
|
2493
2638
|
"SubtitlesSequence": {
|
|
2494
2639
|
"type": "object",
|
|
2495
2640
|
"required": [
|
|
@@ -2600,6 +2745,13 @@
|
|
|
2600
2745
|
"Jpeg2000Imf4k"
|
|
2601
2746
|
]
|
|
2602
2747
|
},
|
|
2748
|
+
{
|
|
2749
|
+
"description": "JPEG 2000 — IMF 8K profiles (byte [14]=0x04 Single Tile Lossy, 0x07 Single/Multi-Tile Reversible), at the Mainlevel/Sublevel combinations ST 2067-21:2026 §6.5.2 Table 5 lists. Only the 2026 edition of ST 2067-21 permits them.",
|
|
2750
|
+
"type": "string",
|
|
2751
|
+
"enum": [
|
|
2752
|
+
"Jpeg2000Imf8k"
|
|
2753
|
+
]
|
|
2754
|
+
},
|
|
2603
2755
|
{
|
|
2604
2756
|
"description": "JPEG 2000 — Broadcast Contribution profile (ST 422 §A.1, byte [14]=0x01, sub-levels 0x11–0x17). Supports stored widths ≤ 3840 per ST 2067-21.",
|
|
2605
2757
|
"type": "string",
|
|
@@ -2614,6 +2766,13 @@
|
|
|
2614
2766
|
"Jpeg2000Ht"
|
|
2615
2767
|
]
|
|
2616
2768
|
},
|
|
2769
|
+
{
|
|
2770
|
+
"description": "The HT-J2K Picture Coding Scheme node label (03010800, a NODE in the SMPTE Labels register). ST 2067-21:2023/2026 §6.2.5 require the leaf label 03010801 ([`VideoCodec::Jpeg2000Ht`]) instead.",
|
|
2771
|
+
"type": "string",
|
|
2772
|
+
"enum": [
|
|
2773
|
+
"Jpeg2000HtNode"
|
|
2774
|
+
]
|
|
2775
|
+
},
|
|
2617
2776
|
{
|
|
2618
2777
|
"description": "VC-5 (SMPTE ST 2117)",
|
|
2619
2778
|
"type": "string",
|
package/schemas/imf-report.json
CHANGED
|
@@ -19,6 +19,13 @@
|
|
|
19
19
|
"package": {
|
|
20
20
|
"$ref": "#/definitions/PackageSummary"
|
|
21
21
|
},
|
|
22
|
+
"ruleWarnings": {
|
|
23
|
+
"description": "Keys of the `rules` option that select no rule (typos, unknown editions); they were ignored. Absent when every key matched.",
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"$ref": "#/definitions/RuleValidationWarning"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
22
29
|
"validation": {
|
|
23
30
|
"$ref": "#/definitions/ValidationReport"
|
|
24
31
|
}
|
|
@@ -335,7 +342,7 @@
|
|
|
335
342
|
"format": "uuid"
|
|
336
343
|
},
|
|
337
344
|
"IssueSource": {
|
|
338
|
-
"description": "Which authority produced a validation finding.\n\nEncodes the \"prose vs XSD\" provenance distinction that SMPTE ST 2067-3 §5.1 calls out (\"the prose document takes precedence on conflict\"), so callers can filter, group, or apply per-source severity overrides without inspecting the code string.\n\
|
|
345
|
+
"description": "Which authority produced a validation finding.\n\nEncodes the \"prose vs XSD\" provenance distinction that SMPTE ST 2067-3 §5.1 calls out (\"the prose document takes precedence on conflict\"), so callers can filter, group, or apply per-source severity overrides without inspecting the code string.\n\nDerived from the rule's spec ([`Spec::source`]): `XSD` rules are `XsdLayer`, `IMFERNO` rules `EngineInternal`, SMPTE specs `ProseRule`.",
|
|
339
346
|
"oneOf": [
|
|
340
347
|
{
|
|
341
348
|
"description": "Came from the runtime XSD validator (uppsala). Schema-layer: the structural subset of the spec that the XSD DSL can express.",
|
|
@@ -428,6 +435,13 @@
|
|
|
428
435
|
"format": "uint",
|
|
429
436
|
"minimum": 0.0
|
|
430
437
|
},
|
|
438
|
+
"segment_id": {
|
|
439
|
+
"description": "Segment Id (`urn:uuid:…`) if applicable",
|
|
440
|
+
"type": [
|
|
441
|
+
"string",
|
|
442
|
+
"null"
|
|
443
|
+
]
|
|
444
|
+
},
|
|
431
445
|
"sequence_id": {
|
|
432
446
|
"description": "Sequence UUID if applicable",
|
|
433
447
|
"type": [
|
|
@@ -514,6 +528,85 @@
|
|
|
514
528
|
}
|
|
515
529
|
}
|
|
516
530
|
},
|
|
531
|
+
"RuleValidationReason": {
|
|
532
|
+
"oneOf": [
|
|
533
|
+
{
|
|
534
|
+
"description": "`source:<variant>` — `<variant>` isn't a known [`IssueSource`].",
|
|
535
|
+
"type": "object",
|
|
536
|
+
"required": [
|
|
537
|
+
"kind",
|
|
538
|
+
"variant"
|
|
539
|
+
],
|
|
540
|
+
"properties": {
|
|
541
|
+
"kind": {
|
|
542
|
+
"type": "string",
|
|
543
|
+
"enum": [
|
|
544
|
+
"unknown_source"
|
|
545
|
+
]
|
|
546
|
+
},
|
|
547
|
+
"variant": {
|
|
548
|
+
"type": "string"
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"description": "The key matches no rule, edition or spec of the catalogue.",
|
|
554
|
+
"type": "object",
|
|
555
|
+
"required": [
|
|
556
|
+
"kind"
|
|
557
|
+
],
|
|
558
|
+
"properties": {
|
|
559
|
+
"kind": {
|
|
560
|
+
"type": "string",
|
|
561
|
+
"enum": [
|
|
562
|
+
"matches_nothing"
|
|
563
|
+
]
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"description": "The key uses syntax the matcher doesn't support (e.g. `XSD/*`).",
|
|
569
|
+
"type": "object",
|
|
570
|
+
"required": [
|
|
571
|
+
"hint",
|
|
572
|
+
"kind"
|
|
573
|
+
],
|
|
574
|
+
"properties": {
|
|
575
|
+
"hint": {
|
|
576
|
+
"type": "string"
|
|
577
|
+
},
|
|
578
|
+
"kind": {
|
|
579
|
+
"type": "string",
|
|
580
|
+
"enum": [
|
|
581
|
+
"unsupported_pattern"
|
|
582
|
+
]
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
]
|
|
587
|
+
},
|
|
588
|
+
"RuleValidationWarning": {
|
|
589
|
+
"description": "A diagnostic about a `RulesConfig` key that the engine couldn't match.\n\nProduced by [`RulesConfig::validate`]. Operators can use these at config-load time to catch typos before any validation work runs.",
|
|
590
|
+
"type": "object",
|
|
591
|
+
"required": [
|
|
592
|
+
"key",
|
|
593
|
+
"reason"
|
|
594
|
+
],
|
|
595
|
+
"properties": {
|
|
596
|
+
"key": {
|
|
597
|
+
"description": "The configured key that triggered the warning.",
|
|
598
|
+
"type": "string"
|
|
599
|
+
},
|
|
600
|
+
"reason": {
|
|
601
|
+
"description": "Why it triggered.",
|
|
602
|
+
"allOf": [
|
|
603
|
+
{
|
|
604
|
+
"$ref": "#/definitions/RuleValidationReason"
|
|
605
|
+
}
|
|
606
|
+
]
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
},
|
|
517
610
|
"Severity": {
|
|
518
611
|
"description": "Severity level of validation issues",
|
|
519
612
|
"oneOf": [
|
|
@@ -547,6 +640,135 @@
|
|
|
547
640
|
}
|
|
548
641
|
]
|
|
549
642
|
},
|
|
643
|
+
"Spec": {
|
|
644
|
+
"description": "A document whose rules imferno checks.",
|
|
645
|
+
"oneOf": [
|
|
646
|
+
{
|
|
647
|
+
"description": "SMPTE ST 377-1 — MXF File Format.",
|
|
648
|
+
"type": "string",
|
|
649
|
+
"enum": [
|
|
650
|
+
"ST377-1"
|
|
651
|
+
]
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"description": "SMPTE ST 377-4 — MXF Multichannel Audio Labeling.",
|
|
655
|
+
"type": "string",
|
|
656
|
+
"enum": [
|
|
657
|
+
"ST377-4"
|
|
658
|
+
]
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"description": "SMPTE ST 429-8 — Packing List.",
|
|
662
|
+
"type": "string",
|
|
663
|
+
"enum": [
|
|
664
|
+
"ST429-8"
|
|
665
|
+
]
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"description": "SMPTE ST 429-9 — Asset Mapping and File Segmentation.",
|
|
669
|
+
"type": "string",
|
|
670
|
+
"enum": [
|
|
671
|
+
"ST429-9"
|
|
672
|
+
]
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"description": "SMPTE ST 2067-2 — IMF Core Constraints.",
|
|
676
|
+
"type": "string",
|
|
677
|
+
"enum": [
|
|
678
|
+
"ST2067-2"
|
|
679
|
+
]
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"description": "SMPTE ST 2067-3 — IMF Composition Playlist.",
|
|
683
|
+
"type": "string",
|
|
684
|
+
"enum": [
|
|
685
|
+
"ST2067-3"
|
|
686
|
+
]
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"description": "SMPTE ST 2067-5 — IMF Essence Component.",
|
|
690
|
+
"type": "string",
|
|
691
|
+
"enum": [
|
|
692
|
+
"ST2067-5"
|
|
693
|
+
]
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"description": "SMPTE ST 2067-9 — IMF Sidecar Composition Map.",
|
|
697
|
+
"type": "string",
|
|
698
|
+
"enum": [
|
|
699
|
+
"ST2067-9"
|
|
700
|
+
]
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"description": "SMPTE ST 2067-21 — IMF Application #2E.",
|
|
704
|
+
"type": "string",
|
|
705
|
+
"enum": [
|
|
706
|
+
"ST2067-21"
|
|
707
|
+
]
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"description": "SMPTE ST 2067-201 — IMF IAB Level 0 Plug-in.",
|
|
711
|
+
"type": "string",
|
|
712
|
+
"enum": [
|
|
713
|
+
"ST2067-201"
|
|
714
|
+
]
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"description": "SMPTE ST 2067-202 — IMF ISXD Plug-in.",
|
|
718
|
+
"type": "string",
|
|
719
|
+
"enum": [
|
|
720
|
+
"ST2067-202"
|
|
721
|
+
]
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"description": "The XML Schema layer: findings of the runtime XSD validator against the vendored schema of a document's namespace.",
|
|
725
|
+
"type": "string",
|
|
726
|
+
"enum": [
|
|
727
|
+
"XSD"
|
|
728
|
+
]
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"description": "imferno's own checks (parse failures, package scanning) that no single SMPTE clause defines.",
|
|
732
|
+
"type": "string",
|
|
733
|
+
"enum": [
|
|
734
|
+
"IMFERNO"
|
|
735
|
+
]
|
|
736
|
+
}
|
|
737
|
+
]
|
|
738
|
+
},
|
|
739
|
+
"Strength": {
|
|
740
|
+
"description": "Normative strength of a rule in an edition's text.",
|
|
741
|
+
"oneOf": [
|
|
742
|
+
{
|
|
743
|
+
"description": "A requirement (\"shall\").",
|
|
744
|
+
"type": "string",
|
|
745
|
+
"enum": [
|
|
746
|
+
"shall"
|
|
747
|
+
]
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"description": "A recommendation (\"should\").",
|
|
751
|
+
"type": "string",
|
|
752
|
+
"enum": [
|
|
753
|
+
"should"
|
|
754
|
+
]
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"description": "A permission or an observation (\"may\").",
|
|
758
|
+
"type": "string",
|
|
759
|
+
"enum": [
|
|
760
|
+
"may"
|
|
761
|
+
]
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"description": "Deprecated in this edition.",
|
|
765
|
+
"type": "string",
|
|
766
|
+
"enum": [
|
|
767
|
+
"deprecated"
|
|
768
|
+
]
|
|
769
|
+
}
|
|
770
|
+
]
|
|
771
|
+
},
|
|
550
772
|
"UnreferencedAsset": {
|
|
551
773
|
"type": "object",
|
|
552
774
|
"required": [
|
|
@@ -563,19 +785,25 @@
|
|
|
563
785
|
}
|
|
564
786
|
},
|
|
565
787
|
"ValidationIssue": {
|
|
566
|
-
"description": "A single validation
|
|
788
|
+
"description": "A single validation finding.\n\nCreated only through [`ValidationIssue::from_rule`]: severity, category, clause and display code all come from the rule table row of the edition that was applied.",
|
|
567
789
|
"type": "object",
|
|
568
790
|
"required": [
|
|
569
791
|
"category",
|
|
792
|
+
"clause",
|
|
570
793
|
"code",
|
|
571
794
|
"context",
|
|
795
|
+
"edition",
|
|
572
796
|
"location",
|
|
573
797
|
"message",
|
|
574
|
-
"
|
|
798
|
+
"rule",
|
|
799
|
+
"severity",
|
|
800
|
+
"source",
|
|
801
|
+
"spec",
|
|
802
|
+
"strength"
|
|
575
803
|
],
|
|
576
804
|
"properties": {
|
|
577
805
|
"additional_instances": {
|
|
578
|
-
"description": "Other `Location`s when this issue represents an aggregation of multiple identical-code occurrences (see [`ValidationReport::aggregate`]). Empty for fresh, un-aggregated issues. Skipped during serialisation when empty
|
|
806
|
+
"description": "Other `Location`s when this issue represents an aggregation of multiple identical-code occurrences (see [`ValidationReport::aggregate`]). Empty for fresh, un-aggregated issues. Skipped during serialisation when empty.",
|
|
579
807
|
"type": "array",
|
|
580
808
|
"items": {
|
|
581
809
|
"$ref": "#/definitions/Location"
|
|
@@ -589,8 +817,12 @@
|
|
|
589
817
|
}
|
|
590
818
|
]
|
|
591
819
|
},
|
|
820
|
+
"clause": {
|
|
821
|
+
"description": "Clause of that edition the rule comes from (empty for pseudo-specs without clauses).",
|
|
822
|
+
"type": "string"
|
|
823
|
+
},
|
|
592
824
|
"code": {
|
|
593
|
-
"description": "
|
|
825
|
+
"description": "Display code: `SPEC:EDITION:CLAUSE/Name`, with the edition actually applied (e.g. `ST2067-3:2016:7.2/SegmentDuration`).",
|
|
594
826
|
"type": "string"
|
|
595
827
|
},
|
|
596
828
|
"context": {
|
|
@@ -600,6 +832,10 @@
|
|
|
600
832
|
"type": "string"
|
|
601
833
|
}
|
|
602
834
|
},
|
|
835
|
+
"edition": {
|
|
836
|
+
"description": "Edition of the spec that was applied (`\"2016\"`; empty for single-edition pseudo-specs).",
|
|
837
|
+
"type": "string"
|
|
838
|
+
},
|
|
603
839
|
"location": {
|
|
604
840
|
"description": "Location where issue was found",
|
|
605
841
|
"allOf": [
|
|
@@ -612,8 +848,12 @@
|
|
|
612
848
|
"description": "Human-readable message",
|
|
613
849
|
"type": "string"
|
|
614
850
|
},
|
|
851
|
+
"rule": {
|
|
852
|
+
"description": "Stable, edition-free rule id (`ST2067-3/SegmentDuration`).",
|
|
853
|
+
"type": "string"
|
|
854
|
+
},
|
|
615
855
|
"severity": {
|
|
616
|
-
"description": "Severity level",
|
|
856
|
+
"description": "Severity level (the table default, possibly remapped by a rules config).",
|
|
617
857
|
"allOf": [
|
|
618
858
|
{
|
|
619
859
|
"$ref": "#/definitions/Severity"
|
|
@@ -621,14 +861,29 @@
|
|
|
621
861
|
]
|
|
622
862
|
},
|
|
623
863
|
"source": {
|
|
624
|
-
"description": "Authority that emitted this issue (XSD layer, prose rule, engine internal)
|
|
625
|
-
"default": "EngineInternal",
|
|
864
|
+
"description": "Authority that emitted this issue (XSD layer, prose rule, engine internal), derived from the rule's spec.",
|
|
626
865
|
"allOf": [
|
|
627
866
|
{
|
|
628
867
|
"$ref": "#/definitions/IssueSource"
|
|
629
868
|
}
|
|
630
869
|
]
|
|
631
870
|
},
|
|
871
|
+
"spec": {
|
|
872
|
+
"description": "Spec the rule belongs to.",
|
|
873
|
+
"allOf": [
|
|
874
|
+
{
|
|
875
|
+
"$ref": "#/definitions/Spec"
|
|
876
|
+
}
|
|
877
|
+
]
|
|
878
|
+
},
|
|
879
|
+
"strength": {
|
|
880
|
+
"description": "Normative strength of the rule in that edition.",
|
|
881
|
+
"allOf": [
|
|
882
|
+
{
|
|
883
|
+
"$ref": "#/definitions/Strength"
|
|
884
|
+
}
|
|
885
|
+
]
|
|
886
|
+
},
|
|
632
887
|
"suggestion": {
|
|
633
888
|
"description": "Suggestion for how to fix",
|
|
634
889
|
"type": [
|
|
@@ -672,6 +927,7 @@
|
|
|
672
927
|
"errors",
|
|
673
928
|
"info",
|
|
674
929
|
"is_compliant",
|
|
930
|
+
"is_fully_validated",
|
|
675
931
|
"is_playable",
|
|
676
932
|
"profile",
|
|
677
933
|
"timestamp",
|
|
@@ -703,6 +959,10 @@
|
|
|
703
959
|
"description": "Whether the package is compliant with base SMPTE standards",
|
|
704
960
|
"type": "boolean"
|
|
705
961
|
},
|
|
962
|
+
"is_fully_validated": {
|
|
963
|
+
"description": "Whether everything in the package was validated. False when a finding says part of it was not (e.g. `IMFERNO:Cpl/ExtensionSequenceNotValidated` for S-ADM audio): then `is_compliant` only covers what was checked. A rule override that switches such a finding `off` moves it to `suppressed` but keeps this false.",
|
|
964
|
+
"type": "boolean"
|
|
965
|
+
},
|
|
706
966
|
"is_playable": {
|
|
707
967
|
"description": "Whether the package is playable despite issues",
|
|
708
968
|
"type": "boolean"
|