{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/perigeetides-com/json-schema/perigeetides-com-tides-result-schema.json",
  "title": "TidesResult",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/perigeetides-com-openapi.json#/components/schemas/TidesResult",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "const": "tides"
    },
    "contractVersion": {
      "type": "string",
      "const": "2026-11-11.1"
    },
    "generatedAt": {
      "type": "string"
    },
    "timeZone": {
      "type": "string"
    },
    "timeZoneLabel": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "label",
          "url"
        ],
        "additionalProperties": false
      }
    },
    "links": {
      "type": "object",
      "properties": {
        "perigee": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "perigee"
      ],
      "additionalProperties": false
    },
    "place": {
      "type": "object",
      "properties": {
        "query": {
          "type": [
            "string",
            "null"
          ]
        },
        "matchedBy": {
          "type": "string",
          "enum": [
            "station_id",
            "coordinates",
            "name",
            "host_location"
          ]
        },
        "station": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "state": {
              "type": [
                "string",
                "null"
              ]
            },
            "latitude": {
              "type": "number"
            },
            "longitude": {
              "type": "number"
            },
            "kind": {
              "type": "string",
              "enum": [
                "reference",
                "subordinate"
              ]
            },
            "distanceMiles": {
              "type": [
                "number",
                "null"
              ]
            },
            "url": {
              "type": "string",
              "format": "uri"
            }
          },
          "required": [
            "id",
            "name",
            "state",
            "latitude",
            "longitude",
            "kind",
            "distanceMiles",
            "url"
          ],
          "additionalProperties": false
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "query",
        "matchedBy",
        "station",
        "note"
      ],
      "additionalProperties": false
    },
    "heightUnit": {
      "type": "string",
      "enum": [
        "ft",
        "m"
      ]
    },
    "datum": {
      "type": "string",
      "const": "MLLW"
    },
    "days": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "startsAt": {
            "type": "string"
          },
          "endsAt": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "high",
                    "low"
                  ]
                },
                "at": {
                  "type": "string"
                },
                "date": {
                  "type": "string"
                },
                "time": {
                  "type": "string"
                },
                "height": {
                  "type": "number"
                }
              },
              "required": [
                "type",
                "at",
                "date",
                "time",
                "height"
              ],
              "additionalProperties": false
            }
          },
          "range": {
            "type": [
              "number",
              "null"
            ]
          },
          "sunrise": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "at": {
                    "type": "string"
                  },
                  "time": {
                    "type": "string"
                  }
                },
                "required": [
                  "at",
                  "time"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "sunset": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "at": {
                    "type": "string"
                  },
                  "time": {
                    "type": "string"
                  }
                },
                "required": [
                  "at",
                  "time"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "moon": {
            "type": "object",
            "properties": {
              "phase": {
                "type": "string"
              },
              "illuminationPercent": {
                "type": "number"
              }
            },
            "required": [
              "phase",
              "illuminationPercent"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "date",
          "label",
          "startsAt",
          "endsAt",
          "events",
          "range",
          "sunrise",
          "sunset",
          "moon"
        ],
        "additionalProperties": false
      }
    },
    "now": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "at": {
              "type": "string"
            },
            "time": {
              "type": "string"
            },
            "height": {
              "type": "number"
            },
            "trend": {
              "type": "string",
              "enum": [
                "rising",
                "falling"
              ]
            },
            "next": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "high",
                    "low"
                  ]
                },
                "at": {
                  "type": "string"
                },
                "date": {
                  "type": "string"
                },
                "time": {
                  "type": "string"
                },
                "height": {
                  "type": "number"
                }
              },
              "required": [
                "type",
                "at",
                "date",
                "time",
                "height"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "at",
            "time",
            "height",
            "trend",
            "next"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "edges": {
      "type": "object",
      "properties": {
        "before": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "high",
                    "low"
                  ]
                },
                "at": {
                  "type": "string"
                },
                "date": {
                  "type": "string"
                },
                "time": {
                  "type": "string"
                },
                "height": {
                  "type": "number"
                }
              },
              "required": [
                "type",
                "at",
                "date",
                "time",
                "height"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "after": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "high",
                    "low"
                  ]
                },
                "at": {
                  "type": "string"
                },
                "date": {
                  "type": "string"
                },
                "time": {
                  "type": "string"
                },
                "height": {
                  "type": "number"
                }
              },
              "required": [
                "type",
                "at",
                "date",
                "time",
                "height"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "before",
        "after"
      ],
      "additionalProperties": false
    },
    "highlights": {
      "type": "object",
      "properties": {
        "highestHigh": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "high",
                    "low"
                  ]
                },
                "at": {
                  "type": "string"
                },
                "date": {
                  "type": "string"
                },
                "time": {
                  "type": "string"
                },
                "height": {
                  "type": "number"
                }
              },
              "required": [
                "type",
                "at",
                "date",
                "time",
                "height"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "lowestLow": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "high",
                    "low"
                  ]
                },
                "at": {
                  "type": "string"
                },
                "date": {
                  "type": "string"
                },
                "time": {
                  "type": "string"
                },
                "height": {
                  "type": "number"
                }
              },
              "required": [
                "type",
                "at",
                "date",
                "time",
                "height"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "minusTides": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "high",
                  "low"
                ]
              },
              "at": {
                "type": "string"
              },
              "date": {
                "type": "string"
              },
              "time": {
                "type": "string"
              },
              "height": {
                "type": "number"
              }
            },
            "required": [
              "type",
              "at",
              "date",
              "time",
              "height"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "highestHigh",
        "lowestLow",
        "minusTides"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "kind",
    "contractVersion",
    "generatedAt",
    "timeZone",
    "timeZoneLabel",
    "summary",
    "notes",
    "sources",
    "links",
    "place",
    "heightUnit",
    "datum",
    "days",
    "now",
    "edges",
    "highlights"
  ],
  "additionalProperties": false
}