@stencila/schema
Version:
Stencila schema and other specifications
63 lines (62 loc) • 1.55 kB
JSON
{
"title": "ListItem",
"@id": "schema:ListItem",
"extends": "Entity",
"role": "tertiary",
"status": "stable",
"category": "prose",
"description": "A single item in a list.",
"properties": {
"type": {
"@id": "schema:type",
"description": "The name of the type.",
"type": "string",
"enum": [
"ListItem"
],
"default": "ListItem",
"from": "Entity"
},
"id": {
"@id": "schema:id",
"description": "The identifier for this item.",
"type": "string",
"from": "Entity"
},
"meta": {
"@id": "stencila:meta",
"description": "Metadata associated with this item.",
"type": "object",
"from": "Entity"
},
"content": {
"@id": "stencila:content",
"description": "The content of the list item.",
"type": "array",
"items": {
"$ref": "Node.schema.json"
},
"from": "ListItem"
},
"checked": {
"@id": "stencila:checked",
"description": "A flag to indicate if this list item is checked.",
"type": "boolean",
"default": false,
"from": "ListItem"
}
},
"required": [
"type",
"content"
],
"file": "ListItem.schema.yaml",
"children": [],
"descendants": [],
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schema.stenci.la/v0/ListItem.schema.json",
"source": "https://github.com/stencila/schema/blob/master/ListItem.schema.yaml",
"type": "object",
"additionalProperties": false,
"propertyAliases": {}
}