{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://poseidat.org/schema/entry/route.json",
    "title": "Route",
    "description": "A route which was planned with an ECS/ECDIS system.",
    "properties": {
      "entry_type": {
        "description": "The journal entry type identifier",
        "type": "string",
        "enum": [
          "route"
        ],
        "default": "route"
      },
      "name": {
        "description": "The name of the route.",
        "type": "string"
      },
      "info": {
        "description": "Generic route information.",
        "type": "string"
      },
      "waypoints": {
        "type": "array",
        "description": "The collection of waypoints which make the route.",
        "title": "Waypoints",
        "items": {
          "$ref": "https://poseidat.org/schema/core/route-waypoint.json"
        },
        "minItems": 1,
        "uniqueItems": true
      }
    },
    "required": [
      "entry_type",
      "name",
      "waypoints"
    ],
    "allOf": [
      { "$ref": "https://poseidat.org/schema/core/base-entry.json" }
    ],
    "type": "object",
    "additionalProperties": true
  }
