Skip to content

Commit 0d35be6

Browse files
committed
Update schemas
1 parent 695da1d commit 0d35be6

File tree

2 files changed

+46
-28
lines changed

2 files changed

+46
-28
lines changed

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

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5348,11 +5348,11 @@
53485348
"MainMedia": {
53495349
"anyOf": [
53505350
{
5351-
"$ref": "#/definitions/Video",
5351+
"$ref": "#/definitions/YoutubeVideo",
53525352
"description": "For displaying embedded, playable videos directly in cards"
53535353
},
53545354
{
5355-
"$ref": "#/definitions/LoopVideo"
5355+
"$ref": "#/definitions/SelfHostedVideo"
53565356
},
53575357
{
53585358
"$ref": "#/definitions/Audio"
@@ -5362,7 +5362,7 @@
53625362
}
53635363
]
53645364
},
5365-
"Video": {
5365+
"YoutubeVideo": {
53665366
"description": "For displaying embedded, playable videos directly in cards",
53675367
"allOf": [
53685368
{
@@ -5372,8 +5372,8 @@
53725372
"enum": [
53735373
"Audio",
53745374
"Gallery",
5375-
"LoopVideo",
5376-
"Video"
5375+
"SelfHostedVideo",
5376+
"YoutubeVideo"
53775377
],
53785378
"type": "string"
53795379
}
@@ -5387,7 +5387,7 @@
53875387
"properties": {
53885388
"type": {
53895389
"type": "string",
5390-
"const": "Video"
5390+
"const": "YoutubeVideo"
53915391
},
53925392
"id": {
53935393
"type": "string"
@@ -5431,7 +5431,7 @@
54315431
}
54325432
]
54335433
},
5434-
"LoopVideo": {
5434+
"SelfHostedVideo": {
54355435
"allOf": [
54365436
{
54375437
"type": "object",
@@ -5440,8 +5440,8 @@
54405440
"enum": [
54415441
"Audio",
54425442
"Gallery",
5443-
"LoopVideo",
5444-
"Video"
5443+
"SelfHostedVideo",
5444+
"YoutubeVideo"
54455445
],
54465446
"type": "string"
54475447
}
@@ -5455,7 +5455,15 @@
54555455
"properties": {
54565456
"type": {
54575457
"type": "string",
5458-
"const": "LoopVideo"
5458+
"const": "SelfHostedVideo"
5459+
},
5460+
"format": {
5461+
"enum": [
5462+
"Cinemagraph",
5463+
"Default",
5464+
"Loop"
5465+
],
5466+
"type": "string"
54595467
},
54605468
"atomId": {
54615469
"type": "string"
@@ -5498,6 +5506,7 @@
54985506
"required": [
54995507
"atomId",
55005508
"duration",
5509+
"format",
55015510
"height",
55025511
"sources",
55035512
"type",
@@ -5515,8 +5524,8 @@
55155524
"enum": [
55165525
"Audio",
55175526
"Gallery",
5518-
"LoopVideo",
5519-
"Video"
5527+
"SelfHostedVideo",
5528+
"YoutubeVideo"
55205529
],
55215530
"type": "string"
55225531
}
@@ -5563,8 +5572,8 @@
55635572
"enum": [
55645573
"Audio",
55655574
"Gallery",
5566-
"LoopVideo",
5567-
"Video"
5575+
"SelfHostedVideo",
5576+
"YoutubeVideo"
55685577
],
55695578
"type": "string"
55705579
}

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

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3820,11 +3820,11 @@
38203820
"MainMedia": {
38213821
"anyOf": [
38223822
{
3823-
"$ref": "#/definitions/Video",
3823+
"$ref": "#/definitions/YoutubeVideo",
38243824
"description": "For displaying embedded, playable videos directly in cards"
38253825
},
38263826
{
3827-
"$ref": "#/definitions/LoopVideo"
3827+
"$ref": "#/definitions/SelfHostedVideo"
38283828
},
38293829
{
38303830
"$ref": "#/definitions/Audio"
@@ -3834,7 +3834,7 @@
38343834
}
38353835
]
38363836
},
3837-
"Video": {
3837+
"YoutubeVideo": {
38383838
"description": "For displaying embedded, playable videos directly in cards",
38393839
"allOf": [
38403840
{
@@ -3844,8 +3844,8 @@
38443844
"enum": [
38453845
"Audio",
38463846
"Gallery",
3847-
"LoopVideo",
3848-
"Video"
3847+
"SelfHostedVideo",
3848+
"YoutubeVideo"
38493849
],
38503850
"type": "string"
38513851
}
@@ -3859,7 +3859,7 @@
38593859
"properties": {
38603860
"type": {
38613861
"type": "string",
3862-
"const": "Video"
3862+
"const": "YoutubeVideo"
38633863
},
38643864
"id": {
38653865
"type": "string"
@@ -3903,7 +3903,7 @@
39033903
}
39043904
]
39053905
},
3906-
"LoopVideo": {
3906+
"SelfHostedVideo": {
39073907
"allOf": [
39083908
{
39093909
"type": "object",
@@ -3912,8 +3912,8 @@
39123912
"enum": [
39133913
"Audio",
39143914
"Gallery",
3915-
"LoopVideo",
3916-
"Video"
3915+
"SelfHostedVideo",
3916+
"YoutubeVideo"
39173917
],
39183918
"type": "string"
39193919
}
@@ -3927,7 +3927,15 @@
39273927
"properties": {
39283928
"type": {
39293929
"type": "string",
3930-
"const": "LoopVideo"
3930+
"const": "SelfHostedVideo"
3931+
},
3932+
"format": {
3933+
"enum": [
3934+
"Cinemagraph",
3935+
"Default",
3936+
"Loop"
3937+
],
3938+
"type": "string"
39313939
},
39323940
"atomId": {
39333941
"type": "string"
@@ -3970,6 +3978,7 @@
39703978
"required": [
39713979
"atomId",
39723980
"duration",
3981+
"format",
39733982
"height",
39743983
"sources",
39753984
"type",
@@ -3987,8 +3996,8 @@
39873996
"enum": [
39883997
"Audio",
39893998
"Gallery",
3990-
"LoopVideo",
3991-
"Video"
3999+
"SelfHostedVideo",
4000+
"YoutubeVideo"
39924001
],
39934002
"type": "string"
39944003
}
@@ -4035,8 +4044,8 @@
40354044
"enum": [
40364045
"Audio",
40374046
"Gallery",
4038-
"LoopVideo",
4039-
"Video"
4047+
"SelfHostedVideo",
4048+
"YoutubeVideo"
40404049
],
40414050
"type": "string"
40424051
}

0 commit comments

Comments
 (0)