{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asterwise-com/json-schema/asterwise-com-api-response-kpruling-planets-response-schema.json",
  "title": "ApiResponse[KPRulingPlanetsResponse]",
  "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_KPRulingPlanetsResponse_",
  "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/KPRulingPlanetsResponse",
      "description": "The endpoint response payload"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "KPRulingPlanetBody": {
      "properties": {
        "longitude": {
          "type": "number",
          "title": "Longitude"
        },
        "rashi": {
          "type": "string",
          "title": "Rashi"
        },
        "sign_lord": {
          "type": "string",
          "title": "Sign Lord"
        },
        "nakshatra_lord": {
          "type": "string",
          "title": "Nakshatra Lord"
        },
        "sub_lord": {
          "type": "string",
          "title": "Sub Lord"
        }
      },
      "type": "object",
      "required": [
        "longitude",
        "rashi",
        "sign_lord",
        "nakshatra_lord",
        "sub_lord"
      ],
      "title": "KPRulingPlanetBody"
    },
    "KPRulingPlanetsResponse": {
      "properties": {
        "ayanamsa": {
          "type": "string",
          "title": "Ayanamsa"
        },
        "target_utc": {
          "type": "string",
          "title": "Target Utc",
          "description": "The instant used, ISO 8601 UTC."
        },
        "target_timezone": {
          "type": "string",
          "title": "Target Timezone",
          "description": "Time zone used to read `target_date`/`target_time` and for the sunrise-based day lord."
        },
        "local_time_status": {
          "type": "string",
          "enum": [
            "ok",
            "nonexistent",
            "ambiguous"
          ],
          "title": "Local Time Status",
          "description": "How `target_date`/`target_time` was read. 'nonexistent': the local time fell in a daylight-saving gap and was read with the offset in force before the change (moved forward by the gap). 'ambiguous': the local time occurred twice and the first occurrence was used. 'ok' otherwise, including when the current instant was used.",
          "default": "ok"
        },
        "day_lord": {
          "type": "string",
          "title": "Day Lord"
        },
        "moon": {
          "$ref": "#/$defs/KPRulingPlanetBody"
        },
        "ascendant": {
          "$ref": "#/$defs/KPRulingPlanetBody"
        },
        "ruling_planets": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Ruling Planets"
        }
      },
      "type": "object",
      "required": [
        "ayanamsa",
        "target_utc",
        "target_timezone",
        "day_lord",
        "moon",
        "ascendant",
        "ruling_planets"
      ],
      "title": "KPRulingPlanetsResponse"
    }
  }
}