@@ -194,10 +194,8 @@ $graph:
194
194
fields :
195
195
- name : doc
196
196
type :
197
- - " null"
198
- - string
199
- - type : array
200
- items : string
197
+ - string?
198
+ - string[]?
201
199
doc : " A documentation string for this type, or an array of strings which should be concatenated."
202
200
jsonldPredicate : " sld:doc"
203
201
@@ -212,10 +210,8 @@ $graph:
212
210
213
211
- name : docChild
214
212
type :
215
- - " null"
216
- - string
217
- - type : array
218
- items : string
213
+ - string?
214
+ - string[]?
219
215
doc : |
220
216
Hint to indicate that during documentation generation, documentation
221
217
for `docChild` should appear in a subsection under this type.
@@ -236,19 +232,18 @@ $graph:
236
232
237
233
- name : SchemaDefinedType
238
234
type : record
239
- extends : " # DocType"
235
+ extends : DocType
240
236
doc : |
241
237
Abstract base for schema-defined types.
242
238
abstract : true
243
239
fields :
244
240
- name : jsonldPredicate
245
241
type :
246
- - " null"
247
- - string
248
- - " #JsonldPredicate"
242
+ - string?
243
+ - JsonldPredicate?
249
244
doc : |
250
245
Annotate this type with linked data context.
251
- jsonldPredicate : " sld:jsonldPredicate"
246
+ jsonldPredicate : sld:jsonldPredicate
252
247
253
248
- name : documentRoot
254
249
type : boolean?
@@ -259,7 +254,7 @@ $graph:
259
254
260
255
- name : RecordField
261
256
type : record
262
- doc : " A field of a record."
257
+ doc : A field of a record.
263
258
fields :
264
259
- name : name
265
260
type : string
@@ -275,36 +270,36 @@ $graph:
275
270
276
271
- name : type
277
272
type :
278
- - " # PrimitiveType"
279
- - " # RecordSchema"
280
- - " # EnumSchema"
281
- - " # ArraySchema"
273
+ - PrimitiveType
274
+ - RecordSchema
275
+ - EnumSchema
276
+ - ArraySchema
282
277
- string
283
278
- type : array
284
279
items :
285
- - " # PrimitiveType"
286
- - " # RecordSchema"
287
- - " # EnumSchema"
288
- - " # ArraySchema"
280
+ - PrimitiveType
281
+ - RecordSchema
282
+ - EnumSchema
283
+ - ArraySchema
289
284
- string
290
285
jsonldPredicate :
291
- _id : " sld:type"
286
+ _id : sld:type
292
287
_type : " @vocab"
293
288
typeDSL : true
289
+ refScope : 0
294
290
doc : |
295
291
The field type
296
292
297
293
298
294
- name : SaladRecordField
299
295
type : record
300
- extends : " # RecordField"
296
+ extends : RecordField
301
297
doc : " A field of a record."
302
298
fields :
303
299
- name : jsonldPredicate
304
300
type :
305
- - " null"
306
- - string
307
- - " #JsonldPredicate"
301
+ - string?
302
+ - JsonldPredicate?
308
303
doc : |
309
304
Annotate this type with linked data context.
310
305
jsonldPredicate : " sld:jsonldPredicate"
@@ -323,19 +318,16 @@ $graph:
323
318
_id : " sld:type"
324
319
_type : " @vocab"
325
320
typeDSL : true
321
+ refScope : 0
326
322
- name : " fields"
327
- type :
328
- - " null"
329
- - type : " array"
330
- items : " #RecordField"
331
-
323
+ type : RecordField[]?
332
324
jsonldPredicate : " sld:fields"
333
325
doc : " Defines the fields of the record."
334
326
335
327
336
328
- name : SaladRecordSchema
337
329
type : record
338
- extends : ["# NamedType", "# RecordSchema", "# SchemaDefinedType" ]
330
+ extends : [NamedType, RecordSchema, SchemaDefinedType]
339
331
documentRoot : true
340
332
specialize :
341
333
specializeFrom : " #RecordField"
@@ -349,22 +341,19 @@ $graph:
349
341
350
342
- name : extends
351
343
type :
352
- - " null"
353
- - string
354
- - type : array
355
- items : string
344
+ - string?
345
+ - string[]?
356
346
jsonldPredicate :
357
347
_id : " sld:extends"
358
348
_type : " @id"
349
+ refScope : 0
359
350
doc : |
360
351
Indicates that this record inherits fields from one or more base records.
361
352
362
353
- name : specialize
363
354
type :
364
- - " null"
365
- - " #SpecializeDef"
366
- - type : array
367
- items : " #SpecializeDef"
355
+ - SpecializeDef?
356
+ - SpecializeDef[]?
368
357
doc : |
369
358
Only applies if `extends` is declared. Apply type specialization using the
370
359
base record as a template. For each field inherited from the base
@@ -388,10 +377,9 @@ $graph:
388
377
_id : " sld:type"
389
378
_type : " @vocab"
390
379
typeDSL : true
380
+ refScope : 0
391
381
- name : " symbols"
392
- type :
393
- - type : " array"
394
- items : " string"
382
+ type : string[]
395
383
jsonldPredicate :
396
384
_id : " sld:symbols"
397
385
_type : " @id"
@@ -401,20 +389,19 @@ $graph:
401
389
402
390
- name : SaladEnumSchema
403
391
type : record
404
- extends : ["# EnumSchema", "# SchemaDefinedType" ]
392
+ extends : [EnumSchema, SchemaDefinedType]
405
393
documentRoot : true
406
394
doc : |
407
395
Define an enumerated type.
408
396
fields :
409
397
- name : extends
410
398
type :
411
- - " null"
412
- - string
413
- - type : array
414
- items : string
399
+ - string?
400
+ - string[]?
415
401
jsonldPredicate :
416
402
_id : " sld:extends"
417
403
_type : " @id"
404
+ refScope : 0
418
405
doc : |
419
406
Indicates that this enum inherits symbols from a base enum.
420
407
@@ -433,29 +420,31 @@ $graph:
433
420
_id : " sld:type"
434
421
_type : " @vocab"
435
422
typeDSL : true
423
+ refScope : 0
436
424
- name : items
437
425
type :
438
- - " # PrimitiveType"
439
- - " # RecordSchema"
440
- - " # EnumSchema"
441
- - " # ArraySchema"
426
+ - PrimitiveType
427
+ - RecordSchema
428
+ - EnumSchema
429
+ - ArraySchema
442
430
- string
443
431
- type : array
444
432
items :
445
- - " # PrimitiveType"
446
- - " # RecordSchema"
447
- - " # EnumSchema"
448
- - " # ArraySchema"
433
+ - PrimitiveType
434
+ - RecordSchema
435
+ - EnumSchema
436
+ - ArraySchema
449
437
- string
450
438
jsonldPredicate :
451
439
_id : " sld:items"
452
440
_type : " @vocab"
441
+ refScope : 0
453
442
doc : " Defines the type of the array elements."
454
443
455
444
456
445
- name : Documentation
457
446
type : record
458
- extends : ["# NamedType", "# DocType" ]
447
+ extends : [NamedType, DocType]
459
448
documentRoot : true
460
449
doc : |
461
450
A documentation section. This type exists to facilitate self-documenting
@@ -471,4 +460,5 @@ $graph:
471
460
jsonldPredicate :
472
461
_id : " sld:type"
473
462
_type : " @vocab"
474
- typeDSL : true
463
+ typeDSL : true
464
+ refScope : 0
0 commit comments