{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://poseidat.org/schema/core/port.json",
  "description": "Fishing port details",
  "title": "Port",
  "properties": {
    "code": {
      "description": "The international port code. Format is 2 letter country code and 3 letter port code. Example: NLURK, BEANR, GBHUL",
      "type": "string",
      "maxLength": 5,
      "minLength": 5
    },
    "location": {
      "$ref": "https://poseidat.org/schema/core/measurement/position.json",
      "description": "The geographical location of the port"
    }
  },
  "required": [
    "code"
  ],
  "type": "object"
}
