@imferno/schema 3.0.2-beta.af1c617 → 3.0.2-beta.b86ffac
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/composition-playlist.json +34 -0
- package/schemas/imf-report.json +170 -8
- package/schemas/imferno-package.json +3391 -0
- package/schemas/rules-config.json +1 -1
- package/schemas/validation-report.json +170 -8
- package/schemas/validation-result.json +4090 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"title": "RulesConfig",
|
|
4
|
-
"description": "ESLint-style per-rule severity overrides
|
|
4
|
+
"description": "ESLint-style per-rule severity overrides (see the module docs for the key forms and their precedence). An empty map (the default) is a no-op.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": {
|
|
7
7
|
"$ref": "#/definitions/RuleSeverity"
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"format": "uuid"
|
|
187
187
|
},
|
|
188
188
|
"IssueSource": {
|
|
189
|
-
"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\
|
|
189
|
+
"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`.",
|
|
190
190
|
"oneOf": [
|
|
191
191
|
{
|
|
192
192
|
"description": "Came from the runtime XSD validator (uppsala). Schema-layer: the structural subset of the spec that the XSD DSL can express.",
|
|
@@ -279,6 +279,13 @@
|
|
|
279
279
|
"format": "uint",
|
|
280
280
|
"minimum": 0.0
|
|
281
281
|
},
|
|
282
|
+
"segment_id": {
|
|
283
|
+
"description": "Segment Id (`urn:uuid:…`) if applicable",
|
|
284
|
+
"type": [
|
|
285
|
+
"string",
|
|
286
|
+
"null"
|
|
287
|
+
]
|
|
288
|
+
},
|
|
282
289
|
"sequence_id": {
|
|
283
290
|
"description": "Sequence UUID if applicable",
|
|
284
291
|
"type": [
|
|
@@ -328,20 +335,148 @@
|
|
|
328
335
|
}
|
|
329
336
|
]
|
|
330
337
|
},
|
|
338
|
+
"Spec": {
|
|
339
|
+
"description": "A document whose rules imferno checks.",
|
|
340
|
+
"oneOf": [
|
|
341
|
+
{
|
|
342
|
+
"description": "SMPTE ST 377-1 — MXF File Format.",
|
|
343
|
+
"type": "string",
|
|
344
|
+
"enum": [
|
|
345
|
+
"ST377-1"
|
|
346
|
+
]
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"description": "SMPTE ST 377-4 — MXF Multichannel Audio Labeling.",
|
|
350
|
+
"type": "string",
|
|
351
|
+
"enum": [
|
|
352
|
+
"ST377-4"
|
|
353
|
+
]
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"description": "SMPTE ST 429-8 — Packing List.",
|
|
357
|
+
"type": "string",
|
|
358
|
+
"enum": [
|
|
359
|
+
"ST429-8"
|
|
360
|
+
]
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"description": "SMPTE ST 429-9 — Asset Mapping and File Segmentation.",
|
|
364
|
+
"type": "string",
|
|
365
|
+
"enum": [
|
|
366
|
+
"ST429-9"
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"description": "SMPTE ST 2067-2 — IMF Core Constraints.",
|
|
371
|
+
"type": "string",
|
|
372
|
+
"enum": [
|
|
373
|
+
"ST2067-2"
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"description": "SMPTE ST 2067-3 — IMF Composition Playlist.",
|
|
378
|
+
"type": "string",
|
|
379
|
+
"enum": [
|
|
380
|
+
"ST2067-3"
|
|
381
|
+
]
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"description": "SMPTE ST 2067-9 — IMF Sidecar Composition Map.",
|
|
385
|
+
"type": "string",
|
|
386
|
+
"enum": [
|
|
387
|
+
"ST2067-9"
|
|
388
|
+
]
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"description": "SMPTE ST 2067-21 — IMF Application #2E.",
|
|
392
|
+
"type": "string",
|
|
393
|
+
"enum": [
|
|
394
|
+
"ST2067-21"
|
|
395
|
+
]
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"description": "SMPTE ST 2067-201 — IMF IAB Level 0 Plug-in.",
|
|
399
|
+
"type": "string",
|
|
400
|
+
"enum": [
|
|
401
|
+
"ST2067-201"
|
|
402
|
+
]
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"description": "SMPTE ST 2067-202 — IMF ISXD Plug-in.",
|
|
406
|
+
"type": "string",
|
|
407
|
+
"enum": [
|
|
408
|
+
"ST2067-202"
|
|
409
|
+
]
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"description": "The XML Schema layer: findings of the runtime XSD validator against the vendored schema of a document's namespace.",
|
|
413
|
+
"type": "string",
|
|
414
|
+
"enum": [
|
|
415
|
+
"XSD"
|
|
416
|
+
]
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"description": "imferno's own checks (parse failures, package scanning) that no single SMPTE clause defines.",
|
|
420
|
+
"type": "string",
|
|
421
|
+
"enum": [
|
|
422
|
+
"IMFERNO"
|
|
423
|
+
]
|
|
424
|
+
}
|
|
425
|
+
]
|
|
426
|
+
},
|
|
427
|
+
"Strength": {
|
|
428
|
+
"description": "Normative strength of a rule in an edition's text.",
|
|
429
|
+
"oneOf": [
|
|
430
|
+
{
|
|
431
|
+
"description": "A requirement (\"shall\").",
|
|
432
|
+
"type": "string",
|
|
433
|
+
"enum": [
|
|
434
|
+
"shall"
|
|
435
|
+
]
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"description": "A recommendation (\"should\").",
|
|
439
|
+
"type": "string",
|
|
440
|
+
"enum": [
|
|
441
|
+
"should"
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"description": "A permission or an observation (\"may\").",
|
|
446
|
+
"type": "string",
|
|
447
|
+
"enum": [
|
|
448
|
+
"may"
|
|
449
|
+
]
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"description": "Deprecated in this edition.",
|
|
453
|
+
"type": "string",
|
|
454
|
+
"enum": [
|
|
455
|
+
"deprecated"
|
|
456
|
+
]
|
|
457
|
+
}
|
|
458
|
+
]
|
|
459
|
+
},
|
|
331
460
|
"ValidationIssue": {
|
|
332
|
-
"description": "A single validation
|
|
461
|
+
"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.",
|
|
333
462
|
"type": "object",
|
|
334
463
|
"required": [
|
|
335
464
|
"category",
|
|
465
|
+
"clause",
|
|
336
466
|
"code",
|
|
337
467
|
"context",
|
|
468
|
+
"edition",
|
|
338
469
|
"location",
|
|
339
470
|
"message",
|
|
340
|
-
"
|
|
471
|
+
"rule",
|
|
472
|
+
"severity",
|
|
473
|
+
"source",
|
|
474
|
+
"spec",
|
|
475
|
+
"strength"
|
|
341
476
|
],
|
|
342
477
|
"properties": {
|
|
343
478
|
"additional_instances": {
|
|
344
|
-
"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
|
|
479
|
+
"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.",
|
|
345
480
|
"type": "array",
|
|
346
481
|
"items": {
|
|
347
482
|
"$ref": "#/definitions/Location"
|
|
@@ -355,8 +490,12 @@
|
|
|
355
490
|
}
|
|
356
491
|
]
|
|
357
492
|
},
|
|
493
|
+
"clause": {
|
|
494
|
+
"description": "Clause of that edition the rule comes from (empty for pseudo-specs without clauses).",
|
|
495
|
+
"type": "string"
|
|
496
|
+
},
|
|
358
497
|
"code": {
|
|
359
|
-
"description": "
|
|
498
|
+
"description": "Display code: `SPEC:EDITION:CLAUSE/Name`, with the edition actually applied (e.g. `ST2067-3:2016:7.2.2/SegmentDuration`).",
|
|
360
499
|
"type": "string"
|
|
361
500
|
},
|
|
362
501
|
"context": {
|
|
@@ -366,6 +505,10 @@
|
|
|
366
505
|
"type": "string"
|
|
367
506
|
}
|
|
368
507
|
},
|
|
508
|
+
"edition": {
|
|
509
|
+
"description": "Edition of the spec that was applied (`\"2016\"`; empty for single-edition pseudo-specs).",
|
|
510
|
+
"type": "string"
|
|
511
|
+
},
|
|
369
512
|
"location": {
|
|
370
513
|
"description": "Location where issue was found",
|
|
371
514
|
"allOf": [
|
|
@@ -378,8 +521,12 @@
|
|
|
378
521
|
"description": "Human-readable message",
|
|
379
522
|
"type": "string"
|
|
380
523
|
},
|
|
524
|
+
"rule": {
|
|
525
|
+
"description": "Stable, edition-free rule id (`ST2067-3/SegmentDuration`).",
|
|
526
|
+
"type": "string"
|
|
527
|
+
},
|
|
381
528
|
"severity": {
|
|
382
|
-
"description": "Severity level",
|
|
529
|
+
"description": "Severity level (the table default, possibly remapped by a rules config).",
|
|
383
530
|
"allOf": [
|
|
384
531
|
{
|
|
385
532
|
"$ref": "#/definitions/Severity"
|
|
@@ -387,14 +534,29 @@
|
|
|
387
534
|
]
|
|
388
535
|
},
|
|
389
536
|
"source": {
|
|
390
|
-
"description": "Authority that emitted this issue (XSD layer, prose rule, engine internal)
|
|
391
|
-
"default": "EngineInternal",
|
|
537
|
+
"description": "Authority that emitted this issue (XSD layer, prose rule, engine internal), derived from the rule's spec.",
|
|
392
538
|
"allOf": [
|
|
393
539
|
{
|
|
394
540
|
"$ref": "#/definitions/IssueSource"
|
|
395
541
|
}
|
|
396
542
|
]
|
|
397
543
|
},
|
|
544
|
+
"spec": {
|
|
545
|
+
"description": "Spec the rule belongs to.",
|
|
546
|
+
"allOf": [
|
|
547
|
+
{
|
|
548
|
+
"$ref": "#/definitions/Spec"
|
|
549
|
+
}
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
"strength": {
|
|
553
|
+
"description": "Normative strength of the rule in that edition.",
|
|
554
|
+
"allOf": [
|
|
555
|
+
{
|
|
556
|
+
"$ref": "#/definitions/Strength"
|
|
557
|
+
}
|
|
558
|
+
]
|
|
559
|
+
},
|
|
398
560
|
"suggestion": {
|
|
399
561
|
"description": "Suggestion for how to fix",
|
|
400
562
|
"type": [
|