Skip to content

Commit 89248bf

Browse files
committed
generate schemas
1 parent 79fa78c commit 89248bf

File tree

2 files changed

+50
-6
lines changed

2 files changed

+50
-6
lines changed

dotcom-rendering/src/frontend/schemas/feArticle.json

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5288,8 +5288,23 @@
52885288
"atomId": {
52895289
"type": "string"
52905290
},
5291-
"videoId": {
5292-
"type": "string"
5291+
"sources": {
5292+
"type": "array",
5293+
"items": {
5294+
"type": "object",
5295+
"properties": {
5296+
"src": {
5297+
"type": "string"
5298+
},
5299+
"mimeType": {
5300+
"$ref": "#/definitions/SupportedVideoFileType"
5301+
}
5302+
},
5303+
"required": [
5304+
"mimeType",
5305+
"src"
5306+
]
5307+
}
52935308
},
52945309
"height": {
52955310
"type": "number"
@@ -5308,13 +5323,20 @@
53085323
"atomId",
53095324
"duration",
53105325
"height",
5326+
"sources",
53115327
"type",
5312-
"videoId",
53135328
"width"
53145329
]
53155330
}
53165331
]
53175332
},
5333+
"SupportedVideoFileType": {
5334+
"enum": [
5335+
"application/x-mpegURL",
5336+
"video/mp4"
5337+
],
5338+
"type": "string"
5339+
},
53185340
"Audio": {
53195341
"allOf": [
53205342
{

dotcom-rendering/src/frontend/schemas/feFront.json

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3922,8 +3922,23 @@
39223922
"atomId": {
39233923
"type": "string"
39243924
},
3925-
"videoId": {
3926-
"type": "string"
3925+
"sources": {
3926+
"type": "array",
3927+
"items": {
3928+
"type": "object",
3929+
"properties": {
3930+
"src": {
3931+
"type": "string"
3932+
},
3933+
"mimeType": {
3934+
"$ref": "#/definitions/SupportedVideoFileType"
3935+
}
3936+
},
3937+
"required": [
3938+
"mimeType",
3939+
"src"
3940+
]
3941+
}
39273942
},
39283943
"height": {
39293944
"type": "number"
@@ -3942,13 +3957,20 @@
39423957
"atomId",
39433958
"duration",
39443959
"height",
3960+
"sources",
39453961
"type",
3946-
"videoId",
39473962
"width"
39483963
]
39493964
}
39503965
]
39513966
},
3967+
"SupportedVideoFileType": {
3968+
"enum": [
3969+
"application/x-mpegURL",
3970+
"video/mp4"
3971+
],
3972+
"type": "string"
3973+
},
39523974
"Audio": {
39533975
"allOf": [
39543976
{

0 commit comments

Comments
 (0)