@imferno/schema 0.1.2

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.
@@ -0,0 +1,131 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "DeliveryComparison",
4
+ "type": "object",
5
+ "required": [
6
+ "audioTypeMatch",
7
+ "extraAudioLanguages",
8
+ "extraSubtitleLanguages",
9
+ "matches",
10
+ "missingAudioLanguages",
11
+ "missingCaptionLanguages",
12
+ "missingForcedNarrativeLanguages",
13
+ "missingSubtitleLanguages",
14
+ "videoDynamicRangeMatch",
15
+ "videoQualityMatch"
16
+ ],
17
+ "properties": {
18
+ "audioTypeMatch": {
19
+ "$ref": "#/definitions/ComparisonResult"
20
+ },
21
+ "extraAudioLanguages": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string"
25
+ }
26
+ },
27
+ "extraSubtitleLanguages": {
28
+ "type": "array",
29
+ "items": {
30
+ "type": "string"
31
+ }
32
+ },
33
+ "matches": {
34
+ "type": "boolean"
35
+ },
36
+ "missingAudioLanguages": {
37
+ "type": "array",
38
+ "items": {
39
+ "type": "string"
40
+ }
41
+ },
42
+ "missingCaptionLanguages": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ "missingForcedNarrativeLanguages": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "string"
52
+ }
53
+ },
54
+ "missingSubtitleLanguages": {
55
+ "type": "array",
56
+ "items": {
57
+ "type": "string"
58
+ }
59
+ },
60
+ "videoDynamicRangeMatch": {
61
+ "$ref": "#/definitions/ComparisonResult"
62
+ },
63
+ "videoQualityMatch": {
64
+ "$ref": "#/definitions/ComparisonResult"
65
+ }
66
+ },
67
+ "definitions": {
68
+ "ComparisonResult": {
69
+ "oneOf": [
70
+ {
71
+ "type": "object",
72
+ "required": [
73
+ "status"
74
+ ],
75
+ "properties": {
76
+ "status": {
77
+ "type": "string",
78
+ "enum": [
79
+ "match"
80
+ ]
81
+ }
82
+ }
83
+ },
84
+ {
85
+ "type": "object",
86
+ "required": [
87
+ "found",
88
+ "requested",
89
+ "status"
90
+ ],
91
+ "properties": {
92
+ "found": {
93
+ "type": "string"
94
+ },
95
+ "requested": {
96
+ "type": "string"
97
+ },
98
+ "status": {
99
+ "type": "string",
100
+ "enum": [
101
+ "exceeded"
102
+ ]
103
+ }
104
+ }
105
+ },
106
+ {
107
+ "type": "object",
108
+ "required": [
109
+ "found",
110
+ "requested",
111
+ "status"
112
+ ],
113
+ "properties": {
114
+ "found": {
115
+ "type": "string"
116
+ },
117
+ "requested": {
118
+ "type": "string"
119
+ },
120
+ "status": {
121
+ "type": "string",
122
+ "enum": [
123
+ "insufficient"
124
+ ]
125
+ }
126
+ }
127
+ }
128
+ ]
129
+ }
130
+ }
131
+ }
@@ -0,0 +1,76 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "DeliveryRequest",
4
+ "type": "object",
5
+ "required": [
6
+ "audioLanguages",
7
+ "audioType",
8
+ "subtitleLanguages",
9
+ "videoDynamicRange",
10
+ "videoQuality"
11
+ ],
12
+ "properties": {
13
+ "audioLanguages": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "string"
17
+ }
18
+ },
19
+ "audioType": {
20
+ "$ref": "#/definitions/AudioType"
21
+ },
22
+ "captionLanguages": {
23
+ "default": [],
24
+ "type": "array",
25
+ "items": {
26
+ "type": "string"
27
+ }
28
+ },
29
+ "forcedNarrativeLanguages": {
30
+ "default": [],
31
+ "type": "array",
32
+ "items": {
33
+ "type": "string"
34
+ }
35
+ },
36
+ "subtitleLanguages": {
37
+ "type": "array",
38
+ "items": {
39
+ "type": "string"
40
+ }
41
+ },
42
+ "videoDynamicRange": {
43
+ "$ref": "#/definitions/VideoDynamicRange"
44
+ },
45
+ "videoQuality": {
46
+ "$ref": "#/definitions/VideoQuality"
47
+ }
48
+ },
49
+ "definitions": {
50
+ "AudioType": {
51
+ "type": "string",
52
+ "enum": [
53
+ "STEREO",
54
+ "DOLBY_DIGITAL",
55
+ "DOLBY_DIGITAL_PLUS",
56
+ "DOLBY_ATMOS"
57
+ ]
58
+ },
59
+ "VideoDynamicRange": {
60
+ "type": "string",
61
+ "enum": [
62
+ "SDR",
63
+ "HDR10",
64
+ "HDR_DOLBY_VISION"
65
+ ]
66
+ },
67
+ "VideoQuality": {
68
+ "type": "string",
69
+ "enum": [
70
+ "SD",
71
+ "HD",
72
+ "UHD"
73
+ ]
74
+ }
75
+ }
76
+ }