{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://schema.mydesignsystem.com/tile.schema.json",
  "title": "Tile",
  "type": "object",
  "properties": {
    "headline": {
      "title": "Headline",
      "description": "Headline for the tile",
      "type": "string",
      "format": "markdown"
    },
    "sub": {
      "title": "Module Subheadline",
      "description": "Subheadline below the tile headline",
      "type": "string",
      "format": "markdown"
    },
    "text": {
      "title": "Module Text",
      "description": "Text for tile",
      "type": "string",
      "format": "markdown"
    },
    "image": {
      "type": "object",
      "properties": {
        "src": {
          "title": "Source",
          "description": "Picture source",
          "type": "string",
          "format": "image",
          "examples": ["img/close-up-young-business-team-working.png"]
        },
        "alt": {
          "title": "Alt text",
          "description": "Alt text to display for picture",
          "type": "string"
        }
      }
    },
    "button": {
      "type": "object",
      "properties": {
        "toggle": {
          "title": "Button Toggle",
          "description": "Toggle wether the Button is displayed or not",
          "type": "boolean",
          "default": true
        },
        "label": {
          "$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/label"
        },
        "url": {
          "$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/url"
        },
        "icon": {
          "$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/icon"
        }
      },
      "additionalProperties": false
    },
    "backgroundColor": {
      "$ref": "http://schema.kickstartds.com/content/storytelling.schema.json#/properties/backgroundColor"
    },
    "backgroundImage": {
      "$ref": "http://schema.kickstartds.com/content/storytelling.schema.json#/properties/backgroundImage"
    },
    "textColor": {
      "$ref": "http://schema.kickstartds.com/content/storytelling.schema.json#/properties/box/properties/textColor"
    }
  },
  "additionalProperties": false,
  "required": ["headline", "image"]
}
