Skip to content

Commit

Permalink
fix: refinements to Table schema for parse/unparser
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed May 2, 2019
1 parent a323c2b commit f29ea14
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
7 changes: 3 additions & 4 deletions schema/text/Table.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ title: Table
'@id': schema:Table
$extends: ../CreativeWork.schema.yaml
role: primary
status: experimental
description: |
A table within an executable document.
status: unstable
description: A table.
properties:
rows:
'@id': stencila:rows
Expand All @@ -21,4 +20,4 @@ properties:
items:
$ref: TableCell.schema.yaml
required:
- cells
- rows
4 changes: 1 addition & 3 deletions schema/text/TableCell.schema.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
title: TableCell
'@id': stencila:TableCell
$extends: ../Thing.schema.yaml
role: secondary
status: experimental
description: |
A cell within a `Table`.
properties:
type:
enum: [TableCell]
name:
'@id': schema:name
description: |
Expand Down Expand Up @@ -53,5 +52,4 @@ properties:
items:
$ref: InlineContent.schema.yaml
required:
- position
- content
9 changes: 4 additions & 5 deletions schema/text/TableRow.schema.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
title: TableRow
'@id': stencila:TableRow
$extends: ../Thing.schema.yaml
role: secondary
status: experimental
description: |
A row within a `Table`.
description: A row within a Table.
properties:
cells:
'@id': stencila:cells
description: |
An array of cells in the table.
description: An array of cells in the row.
type: array
items:
$ref: TableCell.schema.yaml
required:
- value
- cells

0 comments on commit f29ea14

Please sign in to comment.