{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asterwise-com/json-schema/asterwise-com-prashna-request-schema.json",
  "title": "PrashnaRequest",
  "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/PrashnaRequest",
  "properties": {
    "latitude": {
      "type": "number",
      "maximum": 90.0,
      "minimum": -90.0,
      "title": "Latitude",
      "description": "Querent location latitude"
    },
    "longitude": {
      "type": "number",
      "maximum": 180.0,
      "minimum": -180.0,
      "title": "Longitude",
      "description": "Querent location longitude"
    },
    "question": {
      "type": "string",
      "enum": [
        "self",
        "wealth",
        "siblings",
        "property",
        "children",
        "health",
        "marriage",
        "death",
        "travel",
        "career",
        "gains",
        "loss"
      ],
      "title": "Question",
      "description": "Question category"
    },
    "target_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Target Date",
      "description": "YYYY-MM-DD. Defaults to now: the current date and time in target_timezone."
    },
    "target_time": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Target Time",
      "description": "HH:MM (24h), with target_date. Defaults to the current time in target_timezone; ignored without target_date."
    },
    "target_timezone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Target Timezone",
      "description": "IANA timezone for input date/time",
      "default": "Asia/Kolkata"
    },
    "ayanamsa": {
      "type": "string",
      "enum": [
        "lahiri",
        "raman",
        "kp",
        "tropical"
      ],
      "title": "Ayanamsa",
      "description": "Ayanamsa system: lahiri (default), raman, kp, or tropical for a zero offset, as on every other chart endpoint",
      "default": "lahiri"
    }
  },
  "type": "object",
  "required": [
    "latitude",
    "longitude",
    "question"
  ]
}