{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://qlik.com/schemas/theming-api.json",
  "title": "Qlik Theming API Schema",
  "description": "JSON Schema for Qlik theming API design tokens",
  "type": "object",
  "properties": {
    "light": {
      "$ref": "#/$defs/sproutTheme"
    },
    "dark": {
      "$ref": "#/$defs/sproutTheme"
    }
  },
  "anyOf": [
    {
      "required": [
        "light"
      ]
    },
    {
      "required": [
        "dark"
      ]
    }
  ],
  "additionalProperties": false,
  "$defs": {
    "sproutTheme": {
      "type": "string"
    }
  }
}