{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openephemeris-com/json-schema/openephemeris-com-agro-calendar-response-schema.json",
  "title": "AgroCalendarResponse",
  "description": "Multi-day calendar summary.",
  "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/AgroCalendarResponse",
  "properties": {
    "_meta": {
      "description": "Calculation metadata",
      "title": " Meta",
      "type": "object"
    },
    "days": {
      "description": "Daily biodynamic summaries",
      "items": {
        "$ref": "#/$defs/AgroCalendarDay"
      },
      "title": "Days",
      "type": "array"
    },
    "observer": {
      "description": "Observer location details",
      "title": "Observer",
      "type": "object"
    },
    "range": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Start and end dates of the calendar",
      "title": "Range",
      "type": "object"
    }
  },
  "required": [
    "range",
    "observer",
    "days",
    "_meta"
  ],
  "type": "object",
  "$defs": {
    "AgroCalendarDay": {
      "description": "One day's compact entry in the calendar.",
      "properties": {
        "ascending": {
          "description": "True if Moon latitude is increasing",
          "title": "Ascending",
          "type": "boolean"
        },
        "date": {
          "description": "Date in YYYY-MM-DD format",
          "title": "Date",
          "type": "string"
        },
        "day_type": {
          "anyOf": [
            {
              "type": "string"
            }
          ],
          "description": "root | leaf | flower | fruit",
          "title": "Day Type"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            }
          ],
          "description": "Error message if calculation failed",
          "title": "Error"
        },
        "illumination_pct": {
          "anyOf": [
            {
              "type": "number"
            }
          ],
          "description": "Illumination percentage",
          "title": "Illumination Pct"
        },
        "phase_name": {
          "anyOf": [
            {
              "type": "string"
            }
          ],
          "description": "Current moon phase name",
          "title": "Phase Name"
        },
        "quality_score": {
          "anyOf": [
            {
              "type": "integer"
            }
          ],
          "description": "Quality score from 0 to 100",
          "title": "Quality Score"
        },
        "spring_neap_index": {
          "anyOf": [
            {
              "type": "number"
            }
          ],
          "description": "Spring-neap index",
          "title": "Spring Neap Index"
        },
        "total_forcing": {
          "anyOf": [
            {
              "type": "number"
            }
          ],
          "description": "Total tidal forcing score",
          "title": "Total Forcing"
        },
        "void_active": {
          "description": "True if Void of Course is active during the day",
          "title": "Void Active",
          "type": "boolean"
        }
      },
      "required": [
        "date",
        "ascending",
        "void_active"
      ],
      "title": "AgroCalendarDay",
      "type": "object"
    }
  }
}