diff --git a/.vscode/settings.json b/.vscode/settings.json index 9cc8566e8c..70f278aca0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,6 +14,7 @@ "./built/Heading.schema.json": "*.heading.yaml", "./built/ImageObject.schema.json": "*.imageObject.yaml", "./built/Include.schema.json": "*.include.yaml", + "./built/List.schema.json": "*.list.yaml", "./built/MediaObject.schema.json": "*mediaObject.yaml", "./built/Mount.schema.json": "*.mount.yaml", "./built/Organization.schema.json": "*.organization.yaml", diff --git a/examples/list/nested.list.yaml b/examples/list/nested.list.yaml new file mode 100644 index 0000000000..d53b96e65c --- /dev/null +++ b/examples/list/nested.list.yaml @@ -0,0 +1,12 @@ +type: List +items: + - Item One + - type: ListItem + content: + - Item Two, containing nested children + - type: List + content: + - Nested Item One + - Nested Item Two + - Nested Item Three + - Item Three diff --git a/examples/list/simple.list.yaml b/examples/list/simple.list.yaml new file mode 100644 index 0000000000..58b1e805f5 --- /dev/null +++ b/examples/list/simple.list.yaml @@ -0,0 +1,5 @@ +type: List +items: + - Item One + - Item Two + - Item Three diff --git a/schema/text/ListItem.schema.yaml b/schema/text/ListItem.schema.yaml new file mode 100644 index 0000000000..18ef6cb8d6 --- /dev/null +++ b/schema/text/ListItem.schema.yaml @@ -0,0 +1,15 @@ +title: ListItem +'@id': schema:ListItem +$extends: ../Thing.schema.yaml +role: secondary +status: unstable +description: A single item in a list. +properties: + content: + type: array + items: + $ref: InlineContent.schema.yaml + checked: + type: boolean +required: + - content