title: Figure
'@id': stencila:Figure
extends: CreativeWork
role: primary
status: unstable
category: prose
description: Encapsulates one or more images, videos, tables, etc, and provides captions and labels for them.
properties:
  label:
    '@id': stencila:label
    description: A short label for the figure.
    type: string
  caption:
    '@id': schema:caption
    description: A caption to display for the figure.
    type: array
    items:
      $ref: Node

title: Figure
'@id': stencila:Figure
extends: CreativeWork
role: primary
status: unstable
category: prose
description: Encapsulates one or more images, videos, tables, etc, and provides captions and labels for them.
properties:
  label:
    '@id': stencila:label
    description: A short label for the figure.
    type: string
  caption:
    '@id': schema:caption
    description: A caption to display for the figure.
    $comment: |
      To be compatible with https://schema.org/caption,
      can be a string.
    anyOf:
      - type: string
      - type: array
        items:
          $ref: Node

Allow caption to be a string for compatability with caption on other types
fix(Figure): Allow caption to be a string for compatability with caption on other types
