{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asterwise-com/json-schema/asterwise-com-api-response-kpchart-response-schema.json",
  "title": "ApiResponse[KPChartResponse]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asterwise-com-kp-api-openapi.yml#/components/schemas/ApiResponse_KPChartResponse_",
  "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/KPChartResponse",
      "description": "The endpoint response payload"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "KPChartResponse": {
      "properties": {
        "birth_time_provided": {
          "type": "boolean",
          "title": "Birth Time Provided",
          "description": "True when a birth time was supplied. False when it was not: house, Ascendant and Moon-dependent results then carry the accuracy limits of an unknown birth time.",
          "default": true
        },
        "ayanamsa": {
          "type": "string",
          "title": "Ayanamsa"
        },
        "house_basis": {
          "type": "string",
          "title": "House Basis",
          "description": "How planet `house` is assigned. Always 'placidus_cusp_to_cusp' (KP occupancy between consecutive sidereal Placidus cusps)."
        },
        "lagna": {
          "$ref": "#/$defs/KPLagna"
        },
        "planets": {
          "additionalProperties": {
            "$ref": "#/$defs/KPPlanet"
          },
          "type": "object",
          "title": "Planets"
        },
        "house_cusps": {
          "additionalProperties": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "object",
          "title": "House Cusps"
        }
      },
      "type": "object",
      "required": [
        "ayanamsa",
        "house_basis",
        "lagna",
        "planets",
        "house_cusps"
      ],
      "title": "KPChartResponse"
    },
    "KPLagna": {
      "properties": {
        "rashi": {
          "type": "string",
          "title": "Rashi"
        },
        "rashi_index": {
          "type": "integer",
          "title": "Rashi Index"
        },
        "longitude": {
          "type": "number",
          "title": "Longitude"
        },
        "nakshatra_lord": {
          "type": "string",
          "title": "Nakshatra Lord"
        },
        "sub_lord": {
          "type": "string",
          "title": "Sub Lord"
        }
      },
      "type": "object",
      "required": [
        "rashi",
        "rashi_index",
        "longitude",
        "nakshatra_lord",
        "sub_lord"
      ],
      "title": "KPLagna"
    },
    "KPPlanet": {
      "properties": {
        "longitude": {
          "type": "number",
          "title": "Longitude",
          "description": "Sidereal longitude (KP ayanamsa), degrees 0-360."
        },
        "rashi_index": {
          "type": "integer",
          "title": "Rashi Index",
          "description": "Sign index, 0 = Mesha … 11 = Meena."
        },
        "rashi": {
          "type": "string",
          "title": "Rashi"
        },
        "degree": {
          "type": "number",
          "title": "Degree",
          "description": "Degrees within the sign."
        },
        "is_retrograde": {
          "type": "boolean",
          "title": "Is Retrograde",
          "description": "True when the longitude speed is negative. Rahu and Ketu are the mean node, which is always retrograde."
        },
        "house": {
          "type": "integer",
          "title": "House",
          "description": "KP house (1-12), cusp to cusp: from cusp h up to, not including, cusp h+1 of the sidereal Placidus cusps. A planet exactly on a cusp is in the house that cusp starts."
        },
        "rasi_house": {
          "type": "integer",
          "title": "Rasi House",
          "description": "Whole-sign house (1-12) counted from the lagna sign, for comparison with Parashari charts."
        },
        "nakshatra_index": {
          "type": "integer",
          "title": "Nakshatra Index",
          "description": "Nakshatra index 0-26."
        },
        "nakshatra_lord": {
          "type": "string",
          "title": "Nakshatra Lord",
          "description": "Star lord (nakshatra lord)."
        },
        "sub_lord": {
          "type": "string",
          "title": "Sub Lord",
          "description": "KP sub-lord."
        }
      },
      "type": "object",
      "required": [
        "longitude",
        "rashi_index",
        "rashi",
        "degree",
        "is_retrograde",
        "house",
        "rasi_house",
        "nakshatra_index",
        "nakshatra_lord",
        "sub_lord"
      ],
      "title": "KPPlanet"
    }
  }
}