Skip to content

Commit

Permalink
fix(Figure): Allow caption to be a string for compatability with capt…
Browse files Browse the repository at this point in the history
…ion on other types
  • Loading branch information
nokome committed Feb 23, 2020
1 parent a27039f commit 1380fd2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions schema/Figure.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ properties:
caption:
'@id': schema:caption
description: A caption to display for the figure.
type: array
items:
$ref: Node
$comment: |
To be compatible with https://schema.org/caption,
can be a string.
anyOf:
- type: string
- type: array
items:
$ref: Node

0 comments on commit 1380fd2

Please sign in to comment.