{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "$id": "http://chameleon-notation/widget-video.json#",
  "title": "Video widget",
  "description": "Schema defines video widget",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": ["video"]
    },
    "autoplay": {
      "type": "boolean"
    },
    "controls": {
      "type": "boolean"
    },
    "label": {
      "$ref": "field-base.json#/definitions/label"
    },
    "muted": {
      "type": "boolean"
    },
    "name": {
      "$ref": "field-base.json#/definitions/name"
    },
    "repeat": {
      "type": "boolean"
    },
    "aspectRatio": {
      "type": "string"
    },
    "value": {
      "type": ["string", "array"],
      "items": {
        "type": "string",
        "format": "url"
      },
      "format": "url"
    }
  },
  "required": ["type"]
}
