@stencila/schema
Version:
Stencila schema and other specifications
98 lines (97 loc) • 2.28 kB
JSON
{
"title": "List",
"@id": "schema:ItemList",
"role": "secondary",
"status": "unstable",
"description": "A list of items.\n",
"properties": {
"type": {
"description": "The name of the type and all descendant types.",
"type": "string",
"enum": [
"List"
],
"default": "List",
"from": "Thing"
},
"id": {
"description": "The identifier for this item.",
"type": "string",
"from": "Thing"
},
"alternateNames": {
"@id": "schema:alternateName",
"description": "Alternate names (aliases) for the item.",
"type": "array",
"items": {
"type": "string"
},
"from": "Thing",
"aliases": [
"alternateName"
]
},
"description": {
"@id": "schema:description",
"description": "A description of the item.",
"type": "string",
"from": "Thing"
},
"meta": {
"@id": "stencila:meta",
"description": "Metadata associated with this item.",
"type": "object",
"from": "Thing"
},
"name": {
"@id": "schema:name",
"description": "The name of the item.",
"type": "string",
"from": "Thing"
},
"url": {
"@id": "schema:url",
"description": "The URL of the item.",
"type": "string",
"format": "uri",
"from": "Thing"
},
"items": {
"@id": "schema:itemListElement",
"description": "The items in the list",
"type": "array",
"items": {
"$ref": "Node.schema.json"
},
"from": "List",
"aliases": [
"item"
]
},
"order": {
"@id": "schema:itemListOrder",
"description": "Type of ordering.",
"enum": [
"ascending",
"descending",
"unordered"
],
"default": "unordered",
"from": "List"
}
},
"required": [
"type",
"items"
],
"source": "https://github.com/stencila/schema/blob/master/schema/text/List.schema.yaml",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://stencila.github.com/schema/List.schema.json",
"category": "text",
"children": [],
"descendants": [],
"type": "object",
"aliases": true,
"additionalProperties": false,
"parent": "Thing"
}