Skip to content

Commit e1885f4

Browse files
committed
chore: create json schemas
1 parent 87c2179 commit e1885f4

2 files changed

Lines changed: 71 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema",
3+
"patternProperties": {
4+
".": {
5+
"properties": {
6+
"title": {
7+
"type": "string"
8+
},
9+
"highlight": {
10+
"type": "string"
11+
},
12+
"description": {
13+
"type": "string"
14+
},
15+
"duration": {
16+
"type": "number"
17+
},
18+
"fadeInDelay": {
19+
"type": "number"
20+
},
21+
"fadeOutDelay": {
22+
"type": "number"
23+
},
24+
"poster": {
25+
"properties": {
26+
"alt": {
27+
"type": "string"
28+
}
29+
},
30+
"required": ["alt"]
31+
}
32+
},
33+
"required": ["title", "highlight", "description", "duration", "fadeInDelay", "fadeOutDelay", "poster"]
34+
}
35+
}
36+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema",
3+
"patternProperties": {
4+
".": {
5+
"properties": {
6+
"title": {
7+
"type": "string"
8+
},
9+
"ariaTitle": {
10+
"type": "string"
11+
},
12+
"type": {
13+
"type": "string",
14+
"enum": ["película", "serie"]
15+
},
16+
"date": {
17+
"type": "string",
18+
"format": "date-time"
19+
},
20+
"score": {
21+
"type": "number"
22+
},
23+
"image": {
24+
"properties": {
25+
"alt": {
26+
"type": "string"
27+
}
28+
},
29+
"required": ["alt"]
30+
}
31+
},
32+
"required": ["title", "ariaTitle", "type", "date", "score", "image"]
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)