{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openephemeris-com/json-schema/openephemeris-com-solar-event-response-schema.json",
  "title": "SolarEventResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openephemeris-com-time-conversion-api-openapi.yml#/components/schemas/SolarEventResponse",
  "properties": {
    "date": {
      "description": "The requested date",
      "title": "Date",
      "type": "string"
    },
    "events": {
      "description": "List of solar events found for the day",
      "items": {
        "$ref": "#/$defs/SolarEventDetail"
      },
      "title": "Events",
      "type": "array"
    },
    "information": {
      "description": "Calculation metadata: `model`; `day_basis` (`civil_tz` or `local_solar`, see the `timezone` parameter), `day_start` and `day_end` (the UTC window searched), and `timezone` when one was named; `elev_m` and `horizon_dip_deg` when an elevation was given.",
      "title": "Information",
      "type": "object"
    },
    "latitude": {
      "description": "Observer latitude",
      "title": "Latitude",
      "type": "number"
    },
    "longitude": {
      "description": "Observer longitude",
      "title": "Longitude",
      "type": "number"
    }
  },
  "required": [
    "date",
    "latitude",
    "longitude",
    "events"
  ],
  "type": "object",
  "$defs": {
    "SolarEventDetail": {
      "properties": {
        "altitude_deg": {
          "anyOf": [
            {
              "type": "number"
            }
          ],
          "description": "Altitude in degrees (positive above horizon)",
          "title": "Altitude Deg"
        },
        "azimuth_deg": {
          "anyOf": [
            {
              "type": "number"
            }
          ],
          "description": "Azimuth in degrees (0=North, 90=East)",
          "title": "Azimuth Deg"
        },
        "jd": {
          "description": "Exact time as a Julian Day number",
          "format": "double",
          "title": "Jd",
          "type": "number"
        },
        "time_iso": {
          "description": "Exact time in ISO 8601 format",
          "title": "Time Iso",
          "type": "string"
        },
        "type": {
          "description": "Type of event (sunrise, sunset, transit, etc.)",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "type",
        "time_iso",
        "jd"
      ],
      "title": "SolarEventDetail",
      "type": "object"
    }
  }
}