{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://poseidat.org/schema/core/fishing-tow.json",
  "description": "Fishing tow details",
  "title": "Fishing tow",
  "properties": {
    "activity_date_start": {
      "description": "The datetime the tow started in UTC",
      "type": "string",
      "format": "date-time"
    },
    "activity_date_end": {
      "description": "The datetime the tow ended in UTC",
      "type": "string",
      "format": "date-time"
    },
    "location_start": {
      "description": "The geographical location where the tow started (if applicable)",
      "$ref": "https://poseidat.org/schema/core/measurement/position.json"
    },
    "location_end": {
      "description": "The geographical location where the tow ended (if applicable)",
      "$ref": "https://poseidat.org/schema/core/measurement/position.json"
    },
    "waypoints": {
      "description": "The collection of geographical locations logged during the tow",
      "title": "Waypoints",
      "items": {
        "$ref": "https://poseidat.org/schema/core/measurement/position.json"
      },
      "type": "array"
    },
    "zone": {
      "description": "The zone the tow took place in",
      "$ref": "https://poseidat.org/schema/core/fishing-zone.json"
    },
    "fishing_gear": {
      "description": "The fishing gear used for this tow",
      "$ref": "https://poseidat.org/schema/core/fishing-gear.json"
    },
    "gear_deployment": {
      "description": "The details of how the gear was used for the tow",
      "$ref": "https://poseidat.org/schema/core/fishing-gear-deployment.json"
    },
    "catches": {
      "description": "The fish caught in this tow",
      "title": "Caught fish",
      "items": {
        "$ref": "https://poseidat.org/schema/core/fishing-catch.json"
      },
      "type": "array"
    }
  },
  "required": [
    "activity_date_start",
    "zone"
  ],
  "type": "object"
}
