{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openephemeris-com/json-schema/openephemeris-com-next-visible-response-schema.json",
  "title": "NextVisibleResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openephemeris-com-eclipse-api-openapi.yml#/components/schemas/NextVisibleResponse",
  "properties": {
    "days_until": {
      "title": "Days Until",
      "type": "number"
    },
    "eclipse": {
      "$ref": "#/$defs/EclipseSummary"
    },
    "local_circumstances": {
      "$ref": "#/$defs/LocalCircumstances"
    }
  },
  "required": [
    "eclipse",
    "days_until"
  ],
  "type": "object",
  "$defs": {
    "EclipseKind": {
      "enum": [
        "solar",
        "lunar"
      ],
      "title": "EclipseKind",
      "type": "string"
    },
    "EclipseSummary": {
      "properties": {
        "date": {
          "title": "Date",
          "type": "string"
        },
        "gamma": {
          "default": 0,
          "title": "Gamma",
          "type": "number"
        },
        "jd": {
          "format": "double",
          "title": "Jd",
          "type": "number"
        },
        "kind": {
          "$ref": "#/$defs/EclipseKind"
        },
        "magnitude": {
          "default": 0,
          "title": "Magnitude",
          "type": "number"
        },
        "type": {
          "$ref": "#/$defs/EclipseType"
        }
      },
      "required": [
        "date",
        "jd",
        "kind"
      ],
      "title": "EclipseSummary",
      "type": "object"
    },
    "EclipseType": {
      "enum": [
        "total",
        "annular",
        "hybrid",
        "partial",
        "penumbral"
      ],
      "title": "EclipseType",
      "type": "string"
    },
    "LocalCircumstances": {
      "properties": {
        "duration_seconds": {
          "anyOf": [
            {
              "type": "number"
            }
          ],
          "title": "Duration Seconds"
        },
        "first_contact": {
          "anyOf": [
            {
              "type": "string"
            }
          ],
          "title": "First Contact"
        },
        "fourth_contact": {
          "anyOf": [
            {
              "type": "string"
            }
          ],
          "title": "Fourth Contact"
        },
        "magnitude": {
          "title": "Magnitude",
          "type": "number"
        },
        "max_eclipse": {
          "title": "Max Eclipse",
          "type": "string"
        },
        "obscuration": {
          "default": 0,
          "title": "Obscuration",
          "type": "number"
        },
        "second_contact": {
          "anyOf": [
            {
              "type": "string"
            }
          ],
          "title": "Second Contact"
        },
        "sun_altitude": {
          "default": 0,
          "title": "Sun Altitude",
          "type": "number"
        },
        "sun_azimuth": {
          "default": 0,
          "title": "Sun Azimuth",
          "type": "number"
        },
        "third_contact": {
          "anyOf": [
            {
              "type": "string"
            }
          ],
          "title": "Third Contact"
        },
        "type": {
          "$ref": "#/$defs/EclipseType"
        }
      },
      "required": [
        "type",
        "magnitude",
        "max_eclipse"
      ],
      "title": "LocalCircumstances",
      "type": "object"
    }
  }
}