{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openvan-camp/json-schema/openvan-camp-ferry-schedule-response-schema.json",
  "title": "FerryScheduleResponse",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openvan-camp-openapi.json#/components/schemas/FerryScheduleResponse",
  "type": "object",
  "properties": {
    "available": {
      "type": "boolean"
    },
    "date": {
      "type": "string",
      "format": "date"
    },
    "timezone": {
      "type": "string"
    },
    "now": {
      "type": "string"
    },
    "operator": {
      "type": "string"
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "license": {
            "type": [
              "string",
              "null"
            ]
          },
          "license_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "valid_to": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "directions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "operator": {
            "type": "string"
          },
          "next": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Next departures today, HH:MM local."
          },
          "tomorrow_first": {
            "type": [
              "string",
              "null"
            ]
          },
          "weekdays": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "0 = Monday."
          },
          "count": {
            "type": "integer"
          },
          "first": {
            "type": [
              "string",
              "null"
            ]
          },
          "last": {
            "type": [
              "string",
              "null"
            ]
          },
          "day_every": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Typical minutes between daytime departures (06–22); null when irregular."
          },
          "night_every": {
            "type": [
              "integer",
              "null"
            ]
          },
          "travel": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Typical travel time, minutes."
          },
          "trips": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "time": {
                  "type": "string"
                },
                "arrive": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "arrive_next_day": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "_attribution": {
      "$ref": "#/$defs/Attribution"
    }
  },
  "$defs": {
    "Attribution": {
      "type": "object",
      "properties": {
        "data_source": {
          "type": "string"
        },
        "license": {
          "type": "string"
        },
        "required": {
          "type": "boolean",
          "description": "Attribution is required by the CC BY 4.0 license."
        },
        "attribution_url": {
          "type": "string",
          "format": "uri"
        },
        "attribution_html": {
          "type": "string",
          "description": "Show this HTML visibly next to the data."
        },
        "instructions": {
          "type": "string",
          "description": "Plain-language attribution requirement for developers and AI coding agents."
        },
        "your_source": {
          "type": "string"
        }
      }
    }
  }
}