{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/astroletra-com/json-schema/astroletra-com-cielo-schema.json",
  "title": "Cielo",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/astroletra-com-openapi.yml#/components/schemas/Cielo",
  "type": "object",
  "required": [
    "date",
    "tz",
    "moon",
    "aspects",
    "retrogrades",
    "source",
    "license",
    "ephemeris"
  ],
  "properties": {
    "date": {
      "type": "string",
      "format": "date"
    },
    "tz": {
      "type": "string"
    },
    "moon": {
      "type": "object",
      "properties": {
        "sign": {
          "type": "string"
        },
        "sign_label": {
          "type": "string"
        },
        "degree": {
          "type": "number",
          "description": "Grado dentro del signo (0-30)"
        },
        "phase": {
          "type": [
            "string",
            "null"
          ]
        },
        "illumination": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0,
          "maximum": 1
        },
        "changes_sign_today": {
          "type": "boolean"
        },
        "next_sign_change": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "at_local": {
              "type": "string"
            },
            "time": {
              "type": "string"
            },
            "date_local": {
              "type": "string"
            },
            "to_sign": {
              "type": "string"
            },
            "to_sign_label": {
              "type": "string"
            }
          }
        }
      }
    },
    "planets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "name_label": {
            "type": "string"
          },
          "sign": {
            "type": "string"
          },
          "sign_label": {
            "type": "string"
          },
          "degree": {
            "type": "number"
          },
          "retrograde": {
            "type": "boolean"
          }
        }
      }
    },
    "aspects": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "p1": {
            "type": "string"
          },
          "p2": {
            "type": "string"
          },
          "p1_label": {
            "type": "string"
          },
          "p2_label": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "type_label": {
            "type": "string"
          },
          "exact": {
            "type": "boolean"
          },
          "at_local": {
            "type": [
              "string",
              "null"
            ]
          },
          "time": {
            "type": [
              "string",
              "null"
            ]
          },
          "orb": {
            "type": "number"
          }
        }
      }
    },
    "retrogrades": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "planet": {
            "type": "string"
          },
          "planet_label": {
            "type": "string"
          },
          "sign": {
            "type": "string"
          },
          "sign_label": {
            "type": "string"
          },
          "since": {
            "type": [
              "string",
              "null"
            ]
          },
          "until": {
            "type": [
              "string",
              "null"
            ]
          },
          "shadow_to": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "lunation_today": {
      "type": [
        "object",
        "null"
      ]
    },
    "next_lunation": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "phase": {
          "type": "string",
          "enum": [
            "new",
            "full"
          ]
        },
        "at_local": {
          "type": "string"
        },
        "date_local": {
          "type": "string"
        },
        "sign": {
          "type": "string"
        },
        "sign_label": {
          "type": "string"
        }
      }
    },
    "source": {
      "type": "string"
    },
    "license": {
      "type": "string"
    },
    "license_url": {
      "type": "string"
    },
    "ephemeris": {
      "type": "string"
    },
    "docs": {
      "type": "string"
    },
    "generated_at": {
      "type": "string"
    }
  }
}