{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asterwise-com/json-schema/asterwise-com-api-response-western-horoscope-data-schema.json",
  "title": "ApiResponse[WesternHoroscopeData]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asterwise-com-western-api-openapi.yml#/components/schemas/ApiResponse_WesternHoroscopeData_",
  "properties": {
    "success": {
      "type": "boolean",
      "title": "Success",
      "description": "True if the request succeeded",
      "default": true
    },
    "message": {
      "type": "string",
      "title": "Message",
      "description": "Human-readable status message",
      "default": "success"
    },
    "data": {
      "$ref": "#/$defs/WesternHoroscopeData",
      "description": "The endpoint response payload"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "HoroscopePhase": {
      "properties": {
        "phase_number": {
          "type": "integer",
          "title": "Phase Number"
        },
        "start_date": {
          "type": "string",
          "title": "Start Date",
          "description": "Phase start date (YYYY-MM-DD)"
        },
        "end_date": {
          "type": "string",
          "title": "End Date",
          "description": "Phase end date (YYYY-MM-DD)"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "narrative": {
          "type": "string",
          "title": "Narrative"
        }
      },
      "type": "object",
      "required": [
        "phase_number",
        "start_date",
        "end_date",
        "title",
        "narrative"
      ],
      "title": "HoroscopePhase"
    },
    "WesternHoroscopeChapter": {
      "properties": {
        "chapter_number": {
          "type": "integer",
          "title": "Chapter Number"
        },
        "start_date": {
          "type": "string",
          "title": "Start Date",
          "description": "Chapter start date (YYYY-MM-DD)"
        },
        "end_date": {
          "type": "string",
          "title": "End Date",
          "description": "Chapter end date (YYYY-MM-DD)"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "narrative": {
          "type": "string",
          "title": "Narrative"
        }
      },
      "type": "object",
      "required": [
        "chapter_number",
        "start_date",
        "end_date",
        "title",
        "narrative"
      ],
      "title": "WesternHoroscopeChapter"
    },
    "WesternHoroscopeContent": {
      "properties": {
        "headline": {
          "type": "string",
          "title": "Headline"
        },
        "narrative": {
          "type": "string",
          "title": "Narrative"
        },
        "career": {
          "type": "string",
          "title": "Career"
        },
        "money": {
          "type": "string",
          "title": "Money"
        },
        "love": {
          "type": "string",
          "title": "Love"
        },
        "body": {
          "type": "string",
          "title": "Body"
        },
        "power_window": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Power Window",
          "description": "Favorable action window with tropical transit context"
        },
        "caution_window": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Caution Window",
          "description": "Cautious or low-energy window with tropical transit context"
        },
        "closing_message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Closing Message",
          "description": "Shareable closing line for the period"
        },
        "phases": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/HoroscopePhase"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Phases",
          "description": "Monthly: phased breakdown"
        },
        "year_theme": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Year Theme",
          "description": "Yearly: tropical theme for the year"
        },
        "chapters": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/WesternHoroscopeChapter"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Chapters",
          "description": "Yearly: chapter breakdown"
        },
        "auspicious_months": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Auspicious Months",
          "description": "Yearly: auspicious month names"
        },
        "landmark_dates": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/WesternHoroscopeLandmarkDate"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Landmark Dates",
          "description": "Yearly: key dates"
        }
      },
      "type": "object",
      "required": [
        "headline",
        "narrative",
        "career",
        "money",
        "love",
        "body"
      ],
      "title": "WesternHoroscopeContent",
      "description": "Stored Western tropical horoscope prose; no remedy field."
    },
    "WesternHoroscopeData": {
      "properties": {
        "content": {
          "$ref": "#/$defs/WesternHoroscopeContent"
        },
        "generated_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Generated At",
          "description": "ISO timestamp when the horoscope was generated (UTC)"
        },
        "period_key": {
          "type": "string",
          "title": "Period Key",
          "description": "The period this horoscope covers, on the India Standard Time calendar: YYYY-MM-DD (daily), YYYY-Www, the ISO week of that week's Monday (weekly), YYYY-MM (monthly) or YYYY (yearly)."
        },
        "horizon": {
          "type": "string",
          "title": "Horizon",
          "description": "Horizon: daily, weekly, monthly, or yearly"
        },
        "sun_sign": {
          "type": "string",
          "title": "Sun Sign",
          "description": "Normalised English tropical Sun sign slug"
        },
        "zodiac_type": {
          "type": "string",
          "title": "Zodiac Type",
          "description": "Always western for these endpoints"
        }
      },
      "type": "object",
      "required": [
        "content",
        "period_key",
        "horizon",
        "sun_sign",
        "zodiac_type"
      ],
      "title": "WesternHoroscopeData",
      "description": "Payload returned by Western horoscope GET endpoints."
    },
    "WesternHoroscopeLandmarkDate": {
      "properties": {
        "date": {
          "type": "string",
          "title": "Date",
          "description": "Landmark date (YYYY-MM-DD)"
        },
        "event": {
          "type": "string",
          "title": "Event"
        }
      },
      "type": "object",
      "required": [
        "date",
        "event"
      ],
      "title": "WesternHoroscopeLandmarkDate"
    }
  }
}