1 | {
|
2 | "title": "List",
|
3 | "@id": "schema:ItemList",
|
4 | "extends": "Entity",
|
5 | "role": "secondary",
|
6 | "status": "unstable",
|
7 | "category": "prose",
|
8 | "description": "A list of items.\n",
|
9 | "properties": {
|
10 | "type": {
|
11 | "@id": "schema:type",
|
12 | "description": "The name of the type.",
|
13 | "type": "string",
|
14 | "enum": [
|
15 | "List"
|
16 | ],
|
17 | "default": "List",
|
18 | "from": "Entity"
|
19 | },
|
20 | "id": {
|
21 | "@id": "schema:id",
|
22 | "description": "The identifier for this item.",
|
23 | "type": "string",
|
24 | "from": "Entity"
|
25 | },
|
26 | "meta": {
|
27 | "@id": "stencila:meta",
|
28 | "description": "Metadata associated with this item.",
|
29 | "type": "object",
|
30 | "from": "Entity"
|
31 | },
|
32 | "items": {
|
33 | "@id": "schema:itemListElement",
|
34 | "description": "The items in the list",
|
35 | "type": "array",
|
36 | "items": {
|
37 | "$ref": "ListItem.schema.json"
|
38 | },
|
39 | "from": "List",
|
40 | "isArray": true,
|
41 | "isPlural": true,
|
42 | "aliases": [
|
43 | "item"
|
44 | ]
|
45 | },
|
46 | "order": {
|
47 | "@id": "schema:itemListOrder",
|
48 | "description": "Type of ordering.",
|
49 | "enum": [
|
50 | "ascending",
|
51 | "descending",
|
52 | "unordered"
|
53 | ],
|
54 | "default": "unordered",
|
55 | "from": "List"
|
56 | }
|
57 | },
|
58 | "required": [
|
59 | "type",
|
60 | "items"
|
61 | ],
|
62 | "file": "List.schema.yaml",
|
63 | "children": [],
|
64 | "descendants": [],
|
65 | "$schema": "http://json-schema.org/draft-07/schema#",
|
66 | "$id": "https://schema.stenci.la/v0/List.schema.json",
|
67 | "source": "https://github.com/stencila/schema/blob/master/List.schema.yaml",
|
68 | "type": "object",
|
69 | "propertyAliases": {
|
70 | "item": "items"
|
71 | },
|
72 | "additionalProperties": false
|
73 | }
|