-
Notifications
You must be signed in to change notification settings - Fork 42
/
Inline.yaml
245 lines (207 loc) · 6.05 KB
/
Inline.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
title: Inline
"@id": stencila:Inline
category: prose
description: Union type for valid inline content.
default: Text
proptest: {}
anyOf:
- $ref: AudioObject
proptest:
min:
description: Do not generate `AudioObject` nodes in inline content.
skip: true
high:
description: Generate `AudioObject` nodes in inline content.
skip: false
- $ref: Button
proptest:
min:
description: Do not generate `Button` nodes in inline content.
skip: true
- $ref: Cite
proptest:
min:
description: Do not generate `Cite` nodes in inline content.
skip: true
- $ref: CiteGroup
proptest:
min:
description: Do not generate `CiteGroup` nodes in inline content.
skip: true
- $ref: CodeExpression
proptest:
min:
description: Do not generate `CodeExpression` nodes in inline content.
skip: true
low:
description: Generate `CodeExpression` nodes in inline content.
skip: false
- $ref: CodeInline
- $ref: Date
proptest:
min:
description: Do not generate `Date` nodes in inline content.
skip: true
high:
description: Generate `Date` nodes in inline content.
skip: false
- $ref: DateTime
proptest:
min:
description: Do not generate `DateTime` nodes in inline content.
skip: true
high:
description: Generate `DateTime` nodes in inline content.
skip: false
- $ref: DeleteInline
proptest:
min:
description: Do not generate `DeleteInline` nodes in inline content.
skip: true
max:
description: Generate `DeleteInline` nodes in inline content.
skip: false
- $ref: Duration
proptest:
min:
description: Do not generate `Duration` nodes in inline content.
skip: true
high:
description: Generate `Duration` nodes in inline content.
skip: false
- $ref: Emphasis
- $ref: ImageObject
- $ref: InsertInline
proptest:
min:
description: Do not generate `InsertInline` nodes in inline content.
skip: true
max:
description: Generate `InsertInline` nodes in inline content.
skip: false
- $ref: InstructionInline
proptest:
min:
description: Do not generate `InstructionInline` nodes in inline content.
skip: true
max:
description: Generate `InstructionInline` nodes in inline content.
skip: false
- $ref: Link
- $ref: MathInline
- $ref: MediaObject
proptest:
min:
description: Do not generate `MediaObject` nodes in inline content.
skip: true
- $ref: ModifyInline
proptest:
min:
description: Do not generate `ModifyInline` nodes in inline content.
skip: true
max:
description: Generate `ModifyInline` nodes in inline content.
skip: false
- $ref: Note
proptest:
min:
description: Do not generate `Note` nodes in inline content.
skip: true
low:
description: Generate `Note` nodes in inline content.
skip: false
- $ref: Parameter
proptest:
min:
description: Do not generate `Parameter` nodes in inline content.
skip: true
low:
description: Generate `Parameter` nodes in inline content.
skip: false
- $ref: QuoteInline
- $ref: ReplaceInline
proptest:
min:
description: Do not generate `ReplaceInline` nodes in inline content.
skip: true
max:
description: Generate `ReplaceInline` nodes in inline content.
skip: false
- $ref: StyledInline
- $ref: Strikeout
- $ref: Strong
- $ref: Subscript
- $ref: SuggestionInline
proptest:
min:
description: Do not generate `SuggestionInline` nodes in inline content.
skip: true
- $ref: Superscript
- $ref: Text
- $ref: Time
proptest:
min:
description: Do not generate `Time` nodes in inline content.
skip: true
high:
description: Generate `Time` nodes in inline content.
skip: false
- $ref: Timestamp
proptest:
min:
description: Do not generate `Timestamp` nodes in inline content.
skip: true
high:
description: Generate `Timestamp` nodes in inline content.
skip: false
- $ref: Underline
- $ref: VideoObject
proptest:
min:
description: Do not generate `VideoObject` nodes in inline content.
skip: true
high:
description: Generate `VideoObject` nodes in inline content.
skip: false
# Primitive types (do not have a "type" property to differentiate them)
- $ref: "Null"
proptest:
min:
description: Do not generate `Null` nodes in inline content.
skip: true
max:
description: Generate a null value.
value: Inline::Null(Null)
- $ref: Boolean
proptest:
min:
description: Do not generate `Boolean` nodes in inline content.
skip: true
max:
description: Generate an arbitrary boolean value.
strategy: Boolean::arbitrary().prop_map(Inline::Boolean)
- $ref: Integer
proptest:
min:
description: Do not generate `Integer` nodes in inline content.
skip: true
max:
description: Generate an arbitrary integer value.
strategy: Integer::arbitrary().prop_map(Inline::Integer)
- $ref: UnsignedInteger
proptest:
min:
description: |
Do not generate `UnsignedInteger` nodes in inline content (since roundtrip
conversion can not differentiate it from an `Integer`).
skip: true
- $ref: Number
proptest:
min:
description: Do not generate `Number` nodes in inline content.
skip: true
max:
description: |
Generate a fixed number. Used at all levels because even with JSON (and other data serialization formats)
round trip conversions can fail in the last significant digit of random numbers.
value: Inline::Number(1.23)