Skip to content

Commit

Permalink
feat(ListItem): Add ListItem schema
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ketch committed Jun 13, 2019
1 parent 7c9c06a commit 7f78868
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions examples/list/nested.list.yaml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions examples/list/simple.list.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: List
items:
- Item One
- Item Two
- Item Three
15 changes: 15 additions & 0 deletions schema/text/ListItem.schema.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7f78868

Please sign in to comment.