{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asterwise-com/json-schema/asterwise-com-api-response-prashna-response-schema.json",
  "title": "ApiResponse[PrashnaResponse]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asterwise-com-prashna-api-openapi.yml#/components/schemas/ApiResponse_PrashnaResponse_",
  "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/PrashnaResponse",
      "description": "The endpoint response payload"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "PrashnaHouseAnalysis": {
      "properties": {
        "house": {
          "type": "integer",
          "title": "House"
        },
        "rashi_index": {
          "type": "integer",
          "title": "Rashi Index",
          "description": "Sign of the quesited house, counted whole sign from the lagna sign (0 = Mesha)."
        },
        "rashi": {
          "type": "string",
          "title": "Rashi"
        },
        "lord": {
          "type": "string",
          "title": "Lord",
          "description": "Lord of the quesited house by whole sign (lord of its sign), as BPHS reads lordship."
        },
        "lord_dignity": {
          "type": "string",
          "title": "Lord Dignity"
        },
        "lord_house": {
          "type": "integer",
          "title": "Lord House"
        },
        "lord_longitude": {
          "type": "number",
          "title": "Lord Longitude"
        },
        "occupants": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Occupants"
        }
      },
      "type": "object",
      "required": [
        "house",
        "rashi_index",
        "rashi",
        "lord",
        "lord_dignity",
        "lord_house",
        "lord_longitude",
        "occupants"
      ],
      "title": "PrashnaHouseAnalysis"
    },
    "PrashnaHouseCusp": {
      "properties": {
        "rashi_index": {
          "type": "integer",
          "title": "Rashi Index"
        },
        "rashi": {
          "type": "string",
          "title": "Rashi"
        },
        "lord": {
          "type": "string",
          "title": "Lord",
          "description": "Lord of the sign on this quadrant cusp. House lordship in house_analysis is whole sign and can differ."
        },
        "longitude": {
          "type": "number",
          "title": "Longitude"
        }
      },
      "type": "object",
      "required": [
        "rashi_index",
        "rashi",
        "lord",
        "longitude"
      ],
      "title": "PrashnaHouseCusp"
    },
    "PrashnaLagna": {
      "properties": {
        "rashi_index": {
          "type": "integer",
          "title": "Rashi Index"
        },
        "rashi": {
          "type": "string",
          "title": "Rashi"
        },
        "longitude": {
          "type": "number",
          "title": "Longitude"
        },
        "lord": {
          "type": "string",
          "title": "Lord"
        }
      },
      "type": "object",
      "required": [
        "rashi_index",
        "rashi",
        "longitude",
        "lord"
      ],
      "title": "PrashnaLagna"
    },
    "PrashnaMoon": {
      "properties": {
        "longitude": {
          "type": "number",
          "title": "Longitude"
        },
        "rashi_index": {
          "type": "integer",
          "title": "Rashi Index"
        },
        "rashi": {
          "type": "string",
          "title": "Rashi"
        },
        "nakshatra": {
          "type": "string",
          "title": "Nakshatra"
        },
        "phase": {
          "type": "string",
          "title": "Phase"
        },
        "dignity": {
          "type": "string",
          "title": "Dignity"
        },
        "void_of_course": {
          "type": "boolean",
          "title": "Void Of Course"
        },
        "afflicted_moon": {
          "type": "boolean",
          "title": "Afflicted Moon"
        },
        "applying_to_benefic": {
          "type": "boolean",
          "title": "Applying To Benefic"
        }
      },
      "type": "object",
      "required": [
        "longitude",
        "rashi_index",
        "rashi",
        "nakshatra",
        "phase",
        "dignity",
        "void_of_course",
        "afflicted_moon",
        "applying_to_benefic"
      ],
      "title": "PrashnaMoon"
    },
    "PrashnaPlanetSummary": {
      "properties": {
        "longitude": {
          "type": "number",
          "title": "Longitude"
        },
        "rashi_index": {
          "type": "integer",
          "title": "Rashi Index"
        },
        "rashi": {
          "type": "string",
          "title": "Rashi"
        },
        "house": {
          "type": "integer",
          "title": "House"
        },
        "is_retrograde": {
          "type": "boolean",
          "title": "Is Retrograde"
        },
        "dignity": {
          "type": "string",
          "title": "Dignity"
        }
      },
      "type": "object",
      "required": [
        "longitude",
        "rashi_index",
        "rashi",
        "house",
        "is_retrograde",
        "dignity"
      ],
      "title": "PrashnaPlanetSummary"
    },
    "PrashnaResponse": {
      "properties": {
        "ayanamsa": {
          "type": "string",
          "title": "Ayanamsa"
        },
        "question": {
          "type": "string",
          "title": "Question"
        },
        "primary_house": {
          "type": "integer",
          "title": "Primary House"
        },
        "ithsala_applying": {
          "type": "boolean",
          "title": "Ithsala Applying",
          "description": "Tajika Ithasala (applying) between the Lagna lord and the quesited house lord, by the Varshaphal rule: Tajika aspect by sign (same sign, 3rd/11th, 4th/10th, 5th/9th, 7th), the faster planet by mean motion (Moon, Mercury, Venus, Sun, Mars, Jupiter, Saturn) behind the slower in degrees within the mean of their Deeptamsas. Retrogression is not modelled. False when one planet rules both houses (always for 'self'; compare lagna.lord and house_analysis.lord)."
        },
        "ithsala_separating": {
          "type": "boolean",
          "title": "Ithsala Separating",
          "description": "Tajika Musaripha (separating): the two lords in Tajika aspect within the same orb but the faster planet already past the slower one's degree. False when one planet rules both houses."
        },
        "query_utc": {
          "type": "string",
          "title": "Query Utc"
        },
        "lagna": {
          "$ref": "#/$defs/PrashnaLagna"
        },
        "house_analysis": {
          "$ref": "#/$defs/PrashnaHouseAnalysis"
        },
        "moon": {
          "$ref": "#/$defs/PrashnaMoon"
        },
        "verdict": {
          "$ref": "#/$defs/PrashnaVerdict"
        },
        "planets": {
          "additionalProperties": {
            "$ref": "#/$defs/PrashnaPlanetSummary"
          },
          "type": "object",
          "title": "Planets"
        },
        "house_cusps": {
          "additionalProperties": {
            "$ref": "#/$defs/PrashnaHouseCusp"
          },
          "type": "object",
          "title": "House Cusps"
        }
      },
      "type": "object",
      "required": [
        "ayanamsa",
        "question",
        "primary_house",
        "ithsala_applying",
        "ithsala_separating",
        "query_utc",
        "lagna",
        "house_analysis",
        "moon",
        "verdict",
        "planets",
        "house_cusps"
      ],
      "title": "PrashnaResponse"
    },
    "PrashnaVerdict": {
      "properties": {
        "verdict": {
          "type": "string",
          "title": "Verdict"
        },
        "confidence": {
          "type": "string",
          "title": "Confidence"
        },
        "score": {
          "type": "integer",
          "title": "Score"
        }
      },
      "type": "object",
      "required": [
        "verdict",
        "confidence",
        "score"
      ],
      "title": "PrashnaVerdict"
    }
  }
}