UNPKG

@poseidat/schemas

Version:

The core schemas for the PoseiDAT data interchange formats

62 lines (61 loc) 1.96 kB
{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://poseidat.org/schema/entry/departure.json", "title": "Departure", "description": "A departure from port event", "properties": { "entry_type": { "description": "The journal entry type identifier", "type": "string", "enum": [ "departure" ], "default": "departure" }, "trip": { "description": "Trip related details for this entry", "$ref": "https://poseidat.org/schema/core/trip-entry.json" }, "activity_date": { "description": "The datetime of the arrival in UTC. GBR: DATI, NLD2: DA + TI, NLD3: DA", "type": "string", "format": "date-time" }, "port": { "description": "The code of the port of departure. These are 5 letter codes prefixed with a 2 letter country code and a 3 letter port identifier. Example: NLURK, BEANR", "$ref": "https://poseidat.org/schema/core/port.json" }, "anticipated_activity": { "description": "The anticipated activity for the fishing trip. Please check the wiki for the meaning of these codes.", "$ref": "https://poseidat.org/schema/enum/reason-departure.json" }, "gear_on_board": { "description": "The gear present on board the vessel", "title": "Gear on board", "items": { "$ref": "https://poseidat.org/schema/core/fishing-gear.json" }, "type": "array", "uniqueItems": true }, "catch_on_board": { "description": "The previously caught fish present on board the vessel", "title": "Catch on board", "items": { "$ref": "https://poseidat.org/schema/core/fishing-catch.json" }, "type": "array" } }, "required": [ "entry_type", "trip", "activity_date", "port" ], "allOf": [ { "$ref": "https://poseidat.org/schema/core/base-entry.json" } ], "type": "object", "additionalProperties": true }