{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/craftingeventfinder-com/json-schema/craftingeventfinder-com-appearance-schema.json",
  "title": "Appearance",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/craftingeventfinder-com-openapi.yml#/components/schemas/Appearance",
  "type": "object",
  "properties": {
    "theme": {
      "type": "string",
      "enum": [
        "county-fair",
        "craft-paper",
        "quilt-show",
        "gallery-linen",
        "sunny-fair"
      ]
    },
    "themeLabel": {
      "type": "string"
    },
    "seasonMode": {
      "type": "string",
      "enum": [
        "auto",
        "fixed",
        "off"
      ]
    },
    "seasonFixed": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "fall",
        "holiday",
        "winter",
        "spring",
        "summer",
        null
      ]
    },
    "season": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string",
          "enum": [
            "fall",
            "holiday",
            "winter",
            "spring",
            "summer"
          ]
        },
        "label": {
          "type": "string"
        },
        "tagline": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "label",
        "tagline"
      ],
      "description": "The season showing right now, or null when seasons are off or the theme has none"
    },
    "seasons": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "fall",
              "holiday",
              "winter",
              "spring",
              "summer"
            ]
          },
          "label": {
            "type": "string"
          },
          "startsMonthDay": {
            "type": "string",
            "description": "MM-DD, Pacific time"
          }
        },
        "required": [
          "id",
          "label",
          "startsMonthDay"
        ]
      },
      "description": "The theme's seasons; empty for a theme without seasons"
    },
    "palette": {
      "type": [
        "string",
        "null"
      ],
      "description": "The color palette showing: the chosen one, else the theme's default; null for a theme without palettes"
    },
    "palettes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PaletteSummary"
      },
      "description": "The theme's color palettes, its default first; empty for a theme without palettes"
    }
  },
  "required": [
    "theme",
    "themeLabel",
    "seasonMode",
    "seasonFixed",
    "season",
    "seasons",
    "palette",
    "palettes"
  ],
  "$defs": {
    "PaletteSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "swatch": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "id",
        "name",
        "swatch"
      ]
    }
  }
}