Skip to content

Commit

Permalink
fix(BlockContent): Remove ListItem from block content
Browse files Browse the repository at this point in the history
Whilst a `List` is `BlockContent`, a `ListItem ` is not.
  • Loading branch information
nokome committed Jun 2, 2021
1 parent 5c80b17 commit b904684
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion python/stencila/schema/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -4336,7 +4336,7 @@ class CitationIntentEnumeration(Enum):
"""
Union type for valid block content.
"""
BlockContent = Union["Claim", "CodeBlock", "CodeChunk", "Collection", "Figure", "Heading", "List", "ListItem", "MathBlock", "Paragraph", "QuoteBlock", "Table", "ThematicBreak"]
BlockContent = Union["Claim", "CodeBlock", "CodeChunk", "Collection", "Figure", "Heading", "List", "MathBlock", "Paragraph", "QuoteBlock", "Table", "ThematicBreak"]


"""
Expand Down
2 changes: 1 addition & 1 deletion r/R/types.R
Original file line number Diff line number Diff line change
Expand Up @@ -4421,7 +4421,7 @@ CitationIntentEnumeration <- Enum("AgreesWith", "CitesAsAuthority", "CitesAsData
#'
#' @return A `list` of class `Union` describing valid subtypes of this type
#' @export
BlockContent <- Union(Claim, CodeBlock, CodeChunk, Collection, Figure, Heading, List, ListItem, MathBlock, Paragraph, QuoteBlock, Table, ThematicBreak)
BlockContent <- Union(Claim, CodeBlock, CodeChunk, Collection, Figure, Heading, List, MathBlock, Paragraph, QuoteBlock, Table, ThematicBreak)


#' All type schemas that are derived from CodeBlock
Expand Down
1 change: 0 additions & 1 deletion rust/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4739,7 +4739,6 @@ pub enum BlockContent {
Figure(Figure),
Heading(Heading),
List(List),
ListItem(ListItem),
MathBlock(MathBlock),
Paragraph(Paragraph),
QuoteBlock(QuoteBlock),
Expand Down
1 change: 0 additions & 1 deletion schema/BlockContent.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ anyOf:
- $ref: Figure
- $ref: Heading
- $ref: List
- $ref: ListItem
- $ref: MathBlock
- $ref: Paragraph
- $ref: QuoteBlock
Expand Down
2 changes: 1 addition & 1 deletion ts/bindings/__file_snapshots__/BlockContent.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
#'
#' @return A `list` of class `Union` describing valid subtypes of this type
#' @export
BlockContent <- Union(Claim, CodeBlock, CodeChunk, Collection, Figure, Heading, List, ListItem, MathBlock, Paragraph, QuoteBlock, Table, ThematicBreak)
BlockContent <- Union(Claim, CodeBlock, CodeChunk, Collection, Figure, Heading, List, MathBlock, Paragraph, QuoteBlock, Table, ThematicBreak)

2 changes: 1 addition & 1 deletion ts/bindings/__file_snapshots__/BlockContent.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
Union type for valid block content.
"""
BlockContent = Union["Claim", "CodeBlock", "CodeChunk", "Collection", "Figure", "Heading", "List", "ListItem", "MathBlock", "Paragraph", "QuoteBlock", "Table", "ThematicBreak"]
BlockContent = Union["Claim", "CodeBlock", "CodeChunk", "Collection", "Figure", "Heading", "List", "MathBlock", "Paragraph", "QuoteBlock", "Table", "ThematicBreak"]
2 changes: 1 addition & 1 deletion ts/bindings/__file_snapshots__/BlockContent.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Union type for valid block content.
*/
export type BlockContent = Claim | CodeBlock | CodeChunk | Collection | Figure | Heading | List | ListItem | MathBlock | Paragraph | QuoteBlock | Table | ThematicBreak
export type BlockContent = Claim | CodeBlock | CodeChunk | Collection | Figure | Heading | List | MathBlock | Paragraph | QuoteBlock | Table | ThematicBreak

0 comments on commit b904684

Please sign in to comment.