File tree 8 files changed +115
-25
lines changed
8 files changed +115
-25
lines changed Original file line number Diff line number Diff line change 56
56
height : 216
57
57
faces :
58
58
-
59
- x : 50.61038563900384,
60
- y : 70.03941296843249,
61
- width : 63.029722675405246,
62
- height : 63.029722675405246,
63
- neighbors : 4,
59
+ x : 50.61038563900384
60
+ y : 70.03941296843249
61
+ width : 63.029722675405246
62
+ height : 63.029722675405246
63
+ neighbors : 4
64
64
confidence : 0.4109060300000006
65
65
colors :
66
66
- [ 213, 188, 135 ]
67
67
- [ 59, 50, 90 ]
68
68
- [ 139, 114, 114 ]
69
69
- [ 112, 104, 140 ]
70
70
- [ 148, 148, 164 ]
71
+ -
72
+ _valid : true
73
+ _name : ' interactive'
74
+ _data :
75
+ id : " bdcc6765-114a-4184-977d-b01d3132ef69"
76
+ type : ' interactive'
77
+ html : ' <iframe src="https://google.com"></iframe>'
78
+ -
79
+ _valid : true
80
+ _name : ' placeholder'
81
+ _data :
82
+ id : " bdcc6765-114a-4184-977d-b01d3132ef69"
83
+ type : ' placeholder'
71
84
-
72
85
_valid : false
73
86
_name : ' text-h1-join-evolution-invalid-author'
167
180
updated_at : null
168
181
text : " AI Websites That Design Themselves"
169
182
length : 34
183
+ -
184
+ _valid : false
185
+ _name : ' invalid-author'
186
+ _data :
187
+ id : " 9a502705-bb6c-4b03-95ee-492dbdd295e4"
188
+ item : " 8a342d34-bdc1-427d-9b34-4b3392828d69"
189
+ type : " h1"
190
+ src : null
191
+ html : " <h1>AI Websites That Design Themselves</h1>"
192
+ metadata :
193
+ title : " Join the Evolution"
194
+ datePublished : " 2014-10-05T04:37:05.900Z"
195
+ description : " AI Websites That Design Themselves\n Join the Evolution\n\n\n Become a Founding Member"
196
+ " @type " : " Product"
197
+ " @context " : " http://schema.org"
198
+ author :
199
+ name : ' Some Person'
200
+ score : 0,
201
+ created_at : ' 2014-05-08T13:22:59.000Z'
202
+ updated_at : null
203
+ text : " AI Websites That Design Themselves"
204
+ length : 34
Original file line number Diff line number Diff line change @@ -63,11 +63,12 @@ properties:
63
63
oneOf :
64
64
- { type: 'null' }
65
65
- { type: 'string', format: 'date-time' }
66
- anyOf :
67
- - { '$ref': 'headline.json' }
68
- - { '$ref': 'text.json' }
69
- - { '$ref': 'cta.json' }
70
- - { '$ref': 'media.json' }
71
- - { '$ref': 'list.json' }
72
-
73
- required : [type, html]
66
+ allOf :
67
+ - { required: [type] }
68
+ - oneOf :
69
+ - { '$ref': 'headline.json' }
70
+ - { '$ref': 'text.json' }
71
+ - { '$ref': 'cta.json' }
72
+ - { '$ref': 'image.json' }
73
+ - { '$ref': 'list.json' }
74
+ - { '$ref': 'placeholder.json' }
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ properties:
10
10
id :
11
11
" $ref " : " base.json#/definitions/uuid"
12
12
type :
13
- " $ref " : " contentblock.json#/definitions/type"
13
+ description : Block type
14
+ example : " text"
15
+ type : string
16
+ enum :
17
+ - cta
14
18
html :
15
19
" $ref " : " contentblock.json#/definitions/html"
16
20
verb :
@@ -37,6 +41,3 @@ properties:
37
41
type : integer
38
42
39
43
required : [type, html]
40
- oneOf :
41
- - { required: [url] }
42
- - { required: [cta] }
Original file line number Diff line number Diff line change @@ -10,7 +10,17 @@ properties:
10
10
id :
11
11
" $ref " : " base.json#/definitions/uuid"
12
12
type :
13
- " $ref " : " contentblock.json#/definitions/type"
13
+ description : Block type
14
+ example : " text"
15
+ type : string
16
+ enum :
17
+ - headline
18
+ - h1
19
+ - h2
20
+ - h3
21
+ - h4
22
+ - h5
23
+ - h6
14
24
html :
15
25
" $ref " : " contentblock.json#/definitions/html"
16
26
text :
@@ -21,5 +31,4 @@ properties:
21
31
description : Length of extracted text
22
32
example : 18
23
33
type : integer
24
-
25
- required : [type, html]
34
+ required : [html]
Original file line number Diff line number Diff line change @@ -10,12 +10,25 @@ properties:
10
10
id :
11
11
" $ref " : " base.json#/definitions/uuid"
12
12
type :
13
- " $ref " : " contentblock.json#/definitions/type"
13
+ description : Block type
14
+ example : " image"
15
+ type : string
16
+ enum :
17
+ - image
18
+ - video
19
+ - audio
20
+ - article
21
+ - location
22
+ - interactive
14
23
html :
15
24
" $ref " : " contentblock.json#/definitions/html"
16
25
src :
17
26
" $ref " : " contentblock.json#/definitions/src"
18
27
cover :
19
28
" $ref " : " media.json#/definitions/cover"
29
+ title :
30
+ type : string
31
+ caption :
32
+ type : string
20
33
21
- required : [id, type, html, src ]
34
+ required : [type, html]
Original file line number Diff line number Diff line change @@ -9,7 +9,11 @@ properties:
9
9
id :
10
10
" $ref " : " base.json#/definitions/uuid"
11
11
type :
12
- " $ref " : " contentblock.json#/definitions/type"
12
+ description : Block type
13
+ example : " text"
14
+ type : string
15
+ enum :
16
+ - list
13
17
html :
14
18
" $ref " : " contentblock.json#/definitions/html"
15
19
items :
Original file line number Diff line number Diff line change
1
+ ---
2
+ id : placeholder.json
3
+ " $schema " : " http://json-schema.org/draft-04/schema"
4
+ title : HTML placeholder
5
+ description : " Placeholder for content being shared"
6
+ type :
7
+ - object
8
+ properties :
9
+ id :
10
+ " $ref " : " base.json#/definitions/uuid"
11
+ type :
12
+ description : Block type
13
+ example : " text"
14
+ type : string
15
+ enum :
16
+ - placeholder
17
+ html :
18
+ " $ref " : " contentblock.json#/definitions/html"
19
+
20
+ required : [type]
Original file line number Diff line number Diff line change @@ -9,7 +9,15 @@ properties:
9
9
id :
10
10
" $ref " : " base.json#/definitions/uuid"
11
11
type :
12
- " $ref " : " contentblock.json#/definitions/type"
12
+ description : Block type
13
+ example : " text"
14
+ type : string
15
+ enum :
16
+ - text
17
+ - code
18
+ - quote
19
+ - hr
20
+ - unknown
13
21
html :
14
22
" $ref " : " contentblock.json#/definitions/html"
15
23
text :
@@ -20,5 +28,4 @@ properties:
20
28
description : Length of extracted text
21
29
example : 7
22
30
type : integer
23
-
24
31
required : [type, html]
You can’t perform that action at this time.
0 commit comments