{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/travelminds-ai/json-schema/travelminds-ai-circuit-out-schema.json",
  "title": "CircuitOut",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/travelminds-ai-openapi.json#/components/schemas/CircuitOut",
  "properties": {
    "slug": {
      "type": "string",
      "title": "Slug",
      "description": "Kebab-case circuit identifier (e.g. 'buddhist-circuit')."
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "Human-readable circuit name."
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description",
      "description": "One-paragraph circuit description."
    },
    "category": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Category",
      "description": "Theme (e.g. 'spiritual', 'heritage', 'eco')."
    },
    "ideal_duration_days": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ideal Duration Days",
      "description": "Recommended trip length in days."
    },
    "best_season": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Best Season",
      "description": "Best season window (free-form)."
    },
    "states": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "States",
      "description": "Regions traversed: ISO-3166-2 state codes (India circuits) or ISO-3166-1 country codes (global circuits)."
    },
    "cross_border": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cross Border",
      "description": "True if the circuit crosses an international border."
    },
    "scope": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Scope",
      "description": "'india' or 'global'."
    },
    "license": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "License",
      "description": "License id from the registry."
    },
    "license_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "License Url",
      "description": "Public URL of the license text."
    },
    "attribution_required": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Attribution Required",
      "description": "True if downstream use must cite the upstream source."
    }
  },
  "type": "object",
  "required": [
    "slug",
    "name"
  ]
}