{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openephemeris-com/json-schema/openephemeris-com-agro-daily-response-schema.json",
  "title": "AgroDailyResponse",
  "description": "Full biodynamic daily profile.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openephemeris-com-agricultural-api-openapi.yml#/components/schemas/AgroDailyResponse",
  "properties": {
    "_meta": {
      "description": "Calculation metadata",
      "title": " Meta",
      "type": "object"
    },
    "date": {
      "description": "Date in YYYY-MM-DD format",
      "title": "Date",
      "type": "string"
    },
    "horizon": {
      "allOf": [
        {
          "$ref": "#/$defs/HorizonEvents"
        }
      ],
      "description": "Sunrise/sunset and moonrise/moonset events"
    },
    "lunar": {
      "allOf": [
        {
          "$ref": "#/$defs/AgroLunarData"
        }
      ],
      "description": "Lunar data summary"
    },
    "observer": {
      "description": "Observer location details",
      "title": "Observer",
      "type": "object"
    },
    "thun": {
      "allOf": [
        {
          "$ref": "#/$defs/ThunAnalysis"
        }
      ],
      "description": "Thun biodynamic analysis"
    },
    "tidal_forcing": {
      "$ref": "#/$defs/AgroTidalData",
      "description": "Tidal forcing metrics"
    },
    "void_of_course": {
      "allOf": [
        {
          "$ref": "#/$defs/VoCData"
        }
      ],
      "description": "Void of course Moon data"
    }
  },
  "required": [
    "date",
    "observer",
    "lunar",
    "thun",
    "void_of_course",
    "horizon",
    "_meta"
  ],
  "type": "object",
  "$defs": {
    "AgroLunarData": {
      "properties": {
        "ascending": {
          "description": "True if ascending",
          "title": "Ascending",
          "type": "boolean"
        },
        "distance_km": {
          "description": "Distance from Earth in km",
          "title": "Distance Km",
          "type": "number"
        },
        "illumination_pct": {
          "description": "Illumination percentage 0-100",
          "title": "Illumination Pct",
          "type": "number"
        },
        "lat_velocity": {
          "description": "Latitude velocity",
          "title": "Lat Velocity",
          "type": "number"
        },
        "latitude": {
          "description": "Ecliptic latitude",
          "title": "Latitude",
          "type": "number"
        },
        "node_lon": {
          "description": "True node longitude",
          "title": "Node Lon",
          "type": "number"
        },
        "phase_name": {
          "description": "Current moon phase name",
          "title": "Phase Name",
          "type": "string"
        },
        "sign_longitude": {
          "description": "Longitude within the current sign (0-30)",
          "title": "Sign Longitude",
          "type": "number"
        },
        "waxing": {
          "description": "True if waxing",
          "title": "Waxing",
          "type": "boolean"
        }
      },
      "required": [
        "sign_longitude",
        "latitude",
        "distance_km",
        "ascending",
        "lat_velocity",
        "node_lon",
        "phase_name",
        "illumination_pct",
        "waxing"
      ],
      "title": "AgroLunarData",
      "type": "object"
    },
    "AgroTidalData": {
      "properties": {
        "diurnal_inequality": {
          "description": "Diurnal inequality value",
          "title": "Diurnal Inequality",
          "type": "number"
        },
        "king_tide_risk": {
          "description": "King tide risk score (0 to 1)",
          "title": "King Tide Risk",
          "type": "number"
        },
        "perigee_proximity": {
          "description": "Perigee proximity score (0 to 1)",
          "title": "Perigee Proximity",
          "type": "number"
        },
        "spring_neap_index": {
          "description": "Spring-neap index (-1 to +1)",
          "title": "Spring Neap Index",
          "type": "number"
        },
        "syzygy_status": {
          "description": "Syzygy status (e.g., 'spring', 'neap')",
          "title": "Syzygy Status",
          "type": "string"
        },
        "total_forcing": {
          "description": "Total tidal forcing score",
          "title": "Total Forcing",
          "type": "number"
        }
      },
      "required": [
        "spring_neap_index",
        "syzygy_status",
        "diurnal_inequality",
        "total_forcing",
        "perigee_proximity",
        "king_tide_risk"
      ],
      "title": "AgroTidalData",
      "type": "object"
    },
    "HorizonEvents": {
      "properties": {
        "day_basis": {
          "description": "Which day the four events belong to: `civil_tz` (the calendar date in `timezone`) or `local_solar` (the local mean solar day at the longitude). Never the UTC day.",
          "title": "Day Basis",
          "type": "string"
        },
        "moonrise": {
          "anyOf": [
            {
              "type": "string"
            }
          ],
          "description": "ISO 8601 UTC moonrise time",
          "title": "Moonrise"
        },
        "moonset": {
          "anyOf": [
            {
              "type": "string"
            }
          ],
          "description": "ISO 8601 UTC moonset time",
          "title": "Moonset"
        },
        "polar": {
          "description": "True if location experiences polar day/night",
          "title": "Polar",
          "type": "boolean"
        },
        "sunrise": {
          "anyOf": [
            {
              "type": "string"
            }
          ],
          "description": "ISO 8601 UTC sunrise time",
          "title": "Sunrise"
        },
        "sunset": {
          "anyOf": [
            {
              "type": "string"
            }
          ],
          "description": "ISO 8601 UTC sunset time",
          "title": "Sunset"
        },
        "timezone": {
          "description": "The IANA zone whose civil day was used. Present only when the request named one.",
          "title": "Timezone",
          "type": "string"
        }
      },
      "required": [
        "polar"
      ],
      "title": "HorizonEvents",
      "type": "object"
    },
    "ThunAnalysis": {
      "properties": {
        "ascending": {
          "description": "True if Moon latitude is increasing",
          "title": "Ascending",
          "type": "boolean"
        },
        "base_element": {
          "description": "earth | water | air | fire",
          "title": "Base Element",
          "type": "string"
        },
        "day_type": {
          "description": "root | leaf | flower | fruit",
          "title": "Day Type",
          "type": "string"
        },
        "favorable": {
          "items": {
            "type": "string"
          },
          "title": "Favorable",
          "type": "array"
        },
        "lat_velocity": {
          "description": "Latitude velocity in degrees per day",
          "title": "Lat Velocity",
          "type": "number"
        },
        "modifiers": {
          "items": {
            "$ref": "#/$defs/ThunModifier"
          },
          "title": "Modifiers",
          "type": "array"
        },
        "optimal": {
          "items": {
            "type": "string"
          },
          "title": "Optimal",
          "type": "array"
        },
        "quality_score": {
          "description": "Quality score from 0 to 100",
          "title": "Quality Score",
          "type": "integer"
        },
        "unfavorable": {
          "items": {
            "type": "string"
          },
          "title": "Unfavorable",
          "type": "array"
        }
      },
      "required": [
        "day_type",
        "base_element",
        "quality_score",
        "ascending",
        "lat_velocity"
      ],
      "title": "ThunAnalysis",
      "type": "object"
    },
    "ThunModifier": {
      "properties": {
        "aspect": {
          "anyOf": [
            {
              "type": "string"
            }
          ],
          "description": "Aspect name",
          "title": "Aspect"
        },
        "impact": {
          "description": "Signed score delta",
          "title": "Impact",
          "type": "integer"
        },
        "orb": {
          "anyOf": [
            {
              "type": "number"
            }
          ],
          "description": "Orb in degrees",
          "title": "Orb"
        },
        "planet": {
          "anyOf": [
            {
              "type": "string"
            }
          ],
          "description": "Planet name",
          "title": "Planet"
        },
        "source": {
          "description": "Source of the modifier, e.g., 'saturn_opposition'",
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "source",
        "impact"
      ],
      "title": "ThunModifier",
      "type": "object"
    },
    "VoCData": {
      "properties": {
        "active": {
          "description": "True if currently void of course",
          "title": "Active",
          "type": "boolean"
        },
        "last_aspect": {
          "anyOf": [
            {
              "type": "string"
            }
          ],
          "description": "Last major aspect before ingress",
          "title": "Last Aspect"
        },
        "last_aspect_jd": {
          "anyOf": [
            {
              "format": "double",
              "type": "number"
            }
          ],
          "description": "Julian Day of the last major aspect",
          "title": "Last Aspect Jd"
        },
        "moon_sign": {
          "description": "Current moon sign",
          "title": "Moon Sign",
          "type": "string"
        },
        "next_sign": {
          "description": "Next moon sign",
          "title": "Next Sign",
          "type": "string"
        },
        "void_end_jd": {
          "description": "Void end Julian Day",
          "format": "double",
          "title": "Void End Jd",
          "type": "number"
        },
        "void_start_jd": {
          "description": "Void start Julian Day",
          "format": "double",
          "title": "Void Start Jd",
          "type": "number"
        }
      },
      "required": [
        "active",
        "void_start_jd",
        "void_end_jd",
        "moon_sign",
        "next_sign"
      ],
      "title": "VoCData",
      "type": "object"
    }
  }
}