{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mantic/json-schema/mantic-calendar-filter-options-schema.json",
  "title": "CalendarFilterOptions",
  "description": "The facet values this calendar actually carries, so the filter bar offers\nonly what can match. Never narrowed by the current filters, or a reader could\nnot widen back out.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mantic-calendar-api-openapi.yml#/components/schemas/CalendarFilterOptions",
  "properties": {
    "countries": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Countries"
    },
    "categories": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Categories"
    },
    "metrics": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Metrics",
      "default": []
    },
    "windows": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/CalendarWindow"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Windows"
    },
    "empty": {
      "type": "boolean",
      "title": "Empty",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "countries",
    "categories"
  ],
  "$defs": {
    "CalendarWindow": {
      "type": "string",
      "enum": [
        "recent",
        "today",
        "tomorrow",
        "this_week",
        "next_week",
        "this_month",
        "next_month",
        "yesterday",
        "previous_week",
        "previous_month"
      ],
      "title": "CalendarWindow",
      "description": "Which releases the calendar shows, relative to the reader's today."
    }
  }
}