Skip to content

Commit

Permalink
fix: fully remove Text node
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Mar 28, 2019
1 parent a6a3af9 commit 0242947
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 22 deletions.
2 changes: 1 addition & 1 deletion examples/emphasis/simple.emphasis.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
type: Emphasis
content:
- Some emphasied text

2 changes: 2 additions & 0 deletions examples/paragraph/invalid.paragraph.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
type: Paragraph
content:
- type: Paragraph
content:
- This paragraph should not be here
6 changes: 6 additions & 0 deletions examples/table/invalid.table.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: Table
cells:
- true
- []
- type: Paragraph

1 change: 0 additions & 1 deletion schema/Include.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ properties:
oneOf:
- $ref: Datatable.schema.yaml
- $ref: Table.schema.yaml
- $ref: Text.schema.yaml
additionalProperties: false
required:
- type
Expand Down
1 change: 0 additions & 1 deletion schema/Sheet.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ allOf:
- $ref: Include.schema.yaml
- $ref: Datatable.schema.yaml
- $ref: Table.schema.yaml
- $ref: Text.schema.yaml
additionalProperties: false
required:
- type
6 changes: 4 additions & 2 deletions schema/TableCell.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: TableCell
'@id': stencila:TableCell
description: |
A cell within a `Table`.
type: object
properties:
type:
enum: [TableCell]
Expand Down Expand Up @@ -49,8 +50,9 @@ properties:
'@id': schema:content
description: |
Contents of the table cell.
allOf:
- $ref: inlineContent.schema.yaml
type: array
items:
$ref: inlineContent.schema.yaml
additionalProperties: false
required:
- type
Expand Down
16 changes: 0 additions & 16 deletions schema/Text.schema.yaml

This file was deleted.

1 change: 0 additions & 1 deletion schema/index.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ anyOf:
- $ref: SoftwareSourceCode.schema.yaml
- $ref: Table.schema.yaml
- $ref: TableCell.schema.yaml
- $ref: Text.schema.yaml
- $ref: Thing.schema.yaml
- $ref: URL.schema.yaml

0 comments on commit 0242947

Please sign in to comment.