{
  "openapi": "3.1.0",
  "info": {
    "title": "SuperYacht Times partner API",
    "version": "1",
    "description": "The partner API gives licensed partners read access to SuperYacht Times yacht data.\n\nEvery request needs an access token, which you get from the token endpoint with the client\ncredentials SuperYacht Times issued to you (see **Authentication**). The data you receive\ndepends on the product your key holds: Standard, Standard + Extended, or a demo key. The same endpoints serve every product; only the payload layout differs.\n\nA typical integration first pulls the lists (`/id/list`, `/imo/list`, `/mmsi/list`) to learn\nwhich yachts it may read, then fetches each yacht with `/yachts/{id}`, and re-fetches with\n`If-None-Match` to pick up changes cheaply. Changes in the SuperYacht Times database reach\nthe API within about ten minutes.\n\nPayloads keep the field names, order and value formats of the original SuperYacht Times API,\nso existing integrations keep working. In particular, decimal measurements (lengths, beams,\nspeeds, draughts) are JSON strings such as `\"100.0\"`, not numbers.\n\nA 404 response means either that the item does not exist or that your product does not\ninclude it. The API never says which.\n",
    "contact": {
      "name": "Your SuperYacht Times account manager"
    }
  },
  "servers": [
    {
      "url": "https://api.superyachttimes.com",
      "description": "Production"
    }
  ],
  "security": [
    {
      "clientCredentials": []
    }
  ],
  "tags": [
    {
      "name": "Lists",
      "description": "Which yachts your key may read, by SuperYacht Times id, IMO number or MMSI."
    },
    {
      "name": "Yachts",
      "description": "Find a yacht by IMO number or MMSI, and read a yacht's record."
    }
  ],
  "x-tagGroups": [
    {
      "name": "Partner API",
      "tags": [
        "Lists",
        "Yachts"
      ]
    }
  ],
  "paths": {
    "/partner/api/v1/id/list": {
      "get": {
        "operationId": "listYachtIds",
        "tags": [
          "Lists"
        ],
        "summary": "List yacht ids",
        "description": "The SuperYacht Times ids of every yacht your key may read, ordered by the yacht's internal\nnumber. Use them with `GET /partner/api/v1/yachts/{id}`.\n\nNot available with the Standard product: a Standard key gets a 404 with an empty body.\nStandard keys use `/imo/list` and `/mmsi/list` instead.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/AcceptEncoding"
          }
        ],
        "responses": {
          "200": {
            "description": "The ids, as a JSON array of strings.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "Vary": {
                "$ref": "#/components/headers/Vary"
              },
              "Content-Encoding": {
                "$ref": "#/components/headers/ContentEncodingNegotiated"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdList"
                },
                "example": [
                  "Y02800001",
                  "Y02800050"
                ]
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/partner/api/v1/imo/list": {
      "get": {
        "operationId": "listYachtsByImo",
        "tags": [
          "Lists"
        ],
        "summary": "List yachts by IMO number",
        "description": "Every yacht your key may read that has an IMO number, as an object from IMO number to\nSuperYacht Times id. Yachts without an IMO number are left out. If two yachts share an IMO\nnumber, the object holds only one of them.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/AcceptEncoding"
          }
        ],
        "responses": {
          "200": {
            "description": "An object whose keys are IMO numbers (as strings) and whose values are yacht ids.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "Vary": {
                "$ref": "#/components/headers/Vary"
              },
              "Content-Encoding": {
                "$ref": "#/components/headers/ContentEncodingNegotiated"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeList"
                },
                "example": {
                  "11111": "Y02800001",
                  "55555": "Y02800050"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/partner/api/v1/mmsi/list": {
      "get": {
        "operationId": "listYachtsByMmsi",
        "tags": [
          "Lists"
        ],
        "summary": "List yachts by MMSI",
        "description": "Every yacht your key may read that has an MMSI, as an object from MMSI to SuperYacht\nTimes id. Yachts without an MMSI are left out. If two yachts share an MMSI, the object\nholds only one of them.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/AcceptEncoding"
          }
        ],
        "responses": {
          "200": {
            "description": "An object whose keys are MMSIs (as strings) and whose values are yacht ids.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "Vary": {
                "$ref": "#/components/headers/Vary"
              },
              "Content-Encoding": {
                "$ref": "#/components/headers/ContentEncodingNegotiated"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeList"
                },
                "example": {
                  "100000001": "Y02800001",
                  "100000004": "Y02800050"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/partner/api/v1/yachts/find/imo/{imo}": {
      "get": {
        "operationId": "findYachtByImo",
        "tags": [
          "Yachts"
        ],
        "summary": "Find a yacht by IMO number",
        "description": "The id of the yacht with this IMO number, as a one-element array. A 404 with an empty\nbody means no yacht your key may read has this IMO number, or the value is not a number.\n",
        "parameters": [
          {
            "name": "imo",
            "in": "path",
            "required": true,
            "description": "The IMO number, digits only (up to 20).",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{1,20}$"
            },
            "example": "11111"
          }
        ],
        "responses": {
          "200": {
            "description": "The matching yacht's id.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "Vary": {
                "$ref": "#/components/headers/Vary"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FindResult"
                },
                "example": [
                  "Y02800001"
                ]
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/partner/api/v1/yachts/find/mmsi/{mmsi}": {
      "get": {
        "operationId": "findYachtByMmsi",
        "tags": [
          "Yachts"
        ],
        "summary": "Find a yacht by MMSI",
        "description": "The id of the yacht with this MMSI, as a one-element array. A 404 with an empty body means\nno yacht your key may read has this MMSI, or the value is not a number.\n",
        "parameters": [
          {
            "name": "mmsi",
            "in": "path",
            "required": true,
            "description": "The MMSI, digits only (up to 20).",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{1,20}$"
            },
            "example": "100000001"
          }
        ],
        "responses": {
          "200": {
            "description": "The matching yacht's id.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "Vary": {
                "$ref": "#/components/headers/Vary"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FindResult"
                },
                "example": [
                  "Y02800001"
                ]
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/partner/api/v1/yachts/{id}": {
      "get": {
        "operationId": "getYacht",
        "tags": [
          "Yachts"
        ],
        "summary": "Get a yacht",
        "description": "One yacht's record. The layout of the record depends on your product, and is the same for\nevery yacht your key reads:\n\n| Product | Schema |\n| --- | --- |\n| Standard | `StandardYacht` |\n| Standard + Extended | `ExtendedYacht` |\n| Demo | `DemoYacht` |\n\nThe payload carries no field that names its layout: you know it from your product.\n\nThe response has a weak `ETag`. Send it back in `If-None-Match` and the API answers\n`304 Not Modified` with no body while the record is unchanged. Send\n`Accept-Encoding: gzip` to receive the record compressed.\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The yacht's SuperYacht Times id, as returned by the lists and the find endpoints\n(for example `Y02800001`).\n",
            "schema": {
              "type": "string"
            },
            "example": "Y02800001"
          },
          {
            "$ref": "#/components/parameters/IfNoneMatch"
          },
          {
            "$ref": "#/components/parameters/AcceptEncoding"
          }
        ],
        "responses": {
          "200": {
            "description": "The yacht's record, in your product's layout.",
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "Vary": {
                "$ref": "#/components/headers/Vary"
              },
              "Content-Encoding": {
                "$ref": "#/components/headers/ContentEncodingDetail"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YachtDetail"
                }
              }
            }
          },
          "304": {
            "description": "The record has not changed since the `ETag` you sent in `If-None-Match`. No body.\n",
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "Vary": {
                "$ref": "#/components/headers/Vary"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "Either the yacht does not exist or your product does not include it: the body is\n`{\"message\":\"Yacht not found\"}`. Or your key has no active product: the body is `{}`.\n",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/YachtNotFound"
                    },
                    {
                      "$ref": "#/components/schemas/EmptyError"
                    }
                  ]
                },
                "examples": {
                  "yachtNotFound": {
                    "summary": "Unknown yacht, or not in your product",
                    "value": {
                      "message": "Yacht not found"
                    }
                  },
                  "noProduct": {
                    "summary": "Your key has no active product",
                    "value": {}
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "clientCredentials": {
        "type": "oauth2",
        "description": "OAuth 2.0 client credentials. Post your `client_id` and `client_secret` to the token URL\nas a form (`application/x-www-form-urlencoded`) with `grant_type=client_credentials`, or\nsend them in an HTTP Basic `Authorization` header instead of the form fields. The\nresponse is a JSON object with `access_token`, `token_type` (`Bearer`), `expires_in`\n(seconds; currently 7 days) and `scope`. Send the token on every request as\n`Authorization: Bearer <access_token>` and fetch a new one when it expires or a request\nanswers 401.\n\nFailed token requests answer in the OAuth 2.0 format, for example\n`{\"error\":\"invalid_client\",\"error_description\":\"Invalid client credentials\"}` with status\n401. The token endpoint accepts about 10 requests a minute from one IP address; reuse the\ntoken rather than fetching one per request.\n",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://pharos.superyachttimes.com/v1/auth/service/token",
            "scopes": {}
          }
        }
      }
    },
    "parameters": {
      "AcceptEncoding": {
        "name": "Accept-Encoding",
        "in": "header",
        "required": false,
        "description": "Send `gzip` to receive a compressed body.",
        "schema": {
          "type": "string"
        },
        "example": "gzip"
      },
      "IfNoneMatch": {
        "name": "If-None-Match",
        "in": "header",
        "required": false,
        "description": "An `ETag` from an earlier response for this yacht. If the record has not changed, the API\nanswers `304 Not Modified` with no body. The weak prefix `W/` is optional.\n",
        "schema": {
          "type": "string"
        },
        "example": "W/\"5d41402abc4b2a76b9719d911017c592d41402abc4b2a76b9719d911017c592\""
      }
    },
    "headers": {
      "ETag": {
        "description": "A weak entity tag for the record (`W/\"<64 hex characters>\"`). It changes whenever the\nrecord changes.\n",
        "schema": {
          "type": "string",
          "pattern": "^W/\"[0-9a-f]{64}\"$"
        }
      },
      "CacheControl": {
        "description": "Always `private`. Responses are for your key only; shared caches must not store them.",
        "schema": {
          "type": "string",
          "const": "private"
        }
      },
      "Vary": {
        "description": "Always includes `Accept-Encoding`.",
        "schema": {
          "type": "string"
        }
      },
      "ContentEncodingNegotiated": {
        "description": "`gzip` when you sent `Accept-Encoding: gzip` and the body is large enough to be worth\ncompressing (about 1 KB and over). Absent otherwise.\n",
        "schema": {
          "type": "string",
          "const": "gzip"
        }
      },
      "ContentEncodingDetail": {
        "description": "`gzip` whenever you sent `Accept-Encoding: gzip`. Absent otherwise.",
        "schema": {
          "type": "string",
          "const": "gzip"
        }
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "No access token, or the token is invalid, expired or revoked. The body is an empty JSON\nobject. Fetch a new token and try again.\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/EmptyError"
            },
            "example": {}
          }
        }
      },
      "Forbidden": {
        "description": "The token is valid but was not issued for the partner API. The body is an empty JSON\nobject.\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/EmptyError"
            },
            "example": {}
          }
        }
      },
      "NotFound": {
        "description": "Not found, or not included in your product, or your key has no active product. The body\nis an empty JSON object. The API does not say which.\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/EmptyError"
            },
            "example": {}
          }
        }
      }
    },
    "schemas": {
      "YachtId": {
        "type": "string",
        "description": "A yacht's SuperYacht Times id.",
        "examples": [
          "Y02800001"
        ]
      },
      "IdList": {
        "type": "array",
        "description": "SuperYacht Times ids of the yachts your key may read.",
        "items": {
          "$ref": "#/components/schemas/YachtId"
        }
      },
      "CodeList": {
        "type": "object",
        "description": "From IMO number or MMSI (the key, digits as a string) to SuperYacht Times id.",
        "propertyNames": {
          "type": "string",
          "pattern": "^[0-9]+$"
        },
        "additionalProperties": {
          "$ref": "#/components/schemas/YachtId"
        }
      },
      "FindResult": {
        "type": "array",
        "description": "The id of the matching yacht, as a one-element array.",
        "minItems": 1,
        "maxItems": 1,
        "items": {
          "$ref": "#/components/schemas/YachtId"
        }
      },
      "EmptyError": {
        "type": "object",
        "description": "An empty JSON object, `{}`.",
        "maxProperties": 0,
        "additionalProperties": false
      },
      "YachtNotFound": {
        "type": "object",
        "description": "The yacht does not exist or is not in your product.",
        "additionalProperties": false,
        "required": [
          "message"
        ],
        "properties": {
          "message": {
            "type": "string",
            "const": "Yacht not found"
          }
        }
      },
      "Decimal": {
        "type": [
          "string",
          "null"
        ],
        "description": "A decimal number written as a string with at least one decimal place, for example\n`\"100.0\"` or `\"15.5\"`; `null` when unknown.\n",
        "pattern": "^-?[0-9]+\\.[0-9]+$"
      },
      "Date": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "description": "A calendar date, `YYYY-MM-DD`; `null` when unknown."
      },
      "Name": {
        "type": "object",
        "description": "An object with a name.",
        "additionalProperties": false,
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "PersonName": {
        "type": "object",
        "description": "A person.",
        "additionalProperties": false,
        "required": [
          "full_name"
        ],
        "properties": {
          "full_name": {
            "type": "string",
            "description": "The person's full name."
          }
        }
      },
      "PhotoUrl": {
        "type": [
          "string",
          "null"
        ],
        "format": "uri",
        "description": "An absolute URL of the image at this size, or `null` when this size is missing."
      },
      "PhotoCategory": {
        "type": [
          "string",
          "null"
        ],
        "description": "What the photo shows. `null` for a category this API does not know by name.\n",
        "enum": [
          "in-build",
          "refit",
          "exterior_design",
          "interior_design",
          "general_arrangement",
          "fleet",
          "laid_up",
          "hull",
          "out_of_water",
          "unknown_yacht",
          "casualty",
          "profile_rendering",
          "yacht_model",
          "name_plate",
          "lifestyle",
          "regatta",
          "yacht_concept",
          "cruising",
          "aerial",
          "deck",
          "night",
          "other_exterior",
          "anchored",
          "profile",
          "in_marina",
          "launch",
          "with_helicopter",
          "at_yacht_show",
          "sailing",
          "jacuzzi_and_pool",
          "exterior_detail",
          "mast_&_domes",
          "at_shipyard",
          "bow",
          "stern",
          "flybridge",
          "saloon",
          "dining",
          "wheelhouse",
          "engine_room",
          "garage",
          "beach_club",
          "stateroom",
          "bathroom",
          "other_interior",
          "galley",
          "cinema",
          "fitness_&_wellnes",
          "study_room",
          "crew_quarter",
          "hall_&_staircase",
          "bar",
          "interior_detail",
          "event_stand",
          "business_card",
          "logo",
          "brochure",
          "magazine",
          "other_marketing",
          "yacht_brochure",
          "syt_events",
          "yacht_show",
          "brochure_document",
          "press_release",
          "legal_document",
          "specifications",
          "pdf_brochure_cover",
          "marina",
          "shipyard",
          "person",
          "suppliers",
          "product",
          "subcontractors",
          "intelligence",
          "yacht_crew",
          "tenders",
          "toys",
          "flag",
          "mast_&_rigging",
          "photo_of_the_day",
          "travel",
          "destination",
          null
        ]
      },
      "Coordinates": {
        "type": "object",
        "description": "A position in decimal degrees (WGS 84).",
        "additionalProperties": false,
        "required": [
          "lon",
          "lat"
        ],
        "properties": {
          "lon": {
            "type": "number",
            "description": "Longitude."
          },
          "lat": {
            "type": "number",
            "description": "Latitude."
          }
        }
      },
      "Build": {
        "type": "object",
        "description": "Where, when and by whom the yacht was built.",
        "additionalProperties": false,
        "required": [
          "builder",
          "country",
          "year"
        ],
        "properties": {
          "builder": {
            "type": "object",
            "description": "The builder (shipyard).",
            "additionalProperties": false,
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The builder's name; `null` when unknown."
              }
            }
          },
          "country": {
            "type": "object",
            "description": "The country the yacht was built in.",
            "additionalProperties": false,
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The country's name; `null` when unknown."
              }
            }
          },
          "year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The year of build (delivery); `null` when unknown."
          }
        }
      },
      "YachtType": {
        "type": [
          "string",
          "null"
        ],
        "description": "`motor` or `sailing`; `null` when unknown.",
        "enum": [
          "motor",
          "sailing",
          null
        ]
      },
      "Engine": {
        "type": "object",
        "description": "One engine model on board, with how many of it.",
        "additionalProperties": false,
        "required": [
          "model",
          "manufacturer",
          "type",
          "hp",
          "kw",
          "count"
        ],
        "properties": {
          "model": {
            "type": [
              "string",
              "null"
            ],
            "description": "The engine model."
          },
          "manufacturer": {
            "type": [
              "string",
              "null"
            ],
            "description": "The engine's manufacturer."
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "The kind of engine.",
            "enum": [
              "Unknown",
              "Diesel",
              "Diesel-Electric",
              "Gas Turbine",
              "Steam",
              "Electric",
              "Petrol",
              null
            ]
          },
          "hp": {
            "type": [
              "number",
              "null"
            ],
            "description": "Power per engine in horsepower."
          },
          "kw": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Power per engine in kilowatts, calculated from `hp` and rounded."
          },
          "count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How many of this engine the yacht has."
          }
        }
      },
      "PhotoUrls": {
        "type": "object",
        "description": "The image in three sizes.",
        "additionalProperties": false,
        "required": [
          "small",
          "large",
          "extra_large"
        ],
        "properties": {
          "small": {
            "$ref": "#/components/schemas/PhotoUrl"
          },
          "large": {
            "$ref": "#/components/schemas/PhotoUrl"
          },
          "extra_large": {
            "$ref": "#/components/schemas/PhotoUrl"
          }
        }
      },
      "Photo": {
        "type": "object",
        "description": "A SuperYacht Times photo.",
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "$ref": "#/components/schemas/PhotoUrls"
          }
        }
      },
      "Photos": {
        "type": "object",
        "description": "The yacht's main photo and up to five exterior photos. The whole `photos` key is absent\nwhen the yacht has no main photo.\n",
        "additionalProperties": false,
        "required": [
          "primary",
          "collection"
        ],
        "properties": {
          "primary": {
            "$ref": "#/components/schemas/Photo"
          },
          "collection": {
            "type": "array",
            "description": "Up to five exterior photos, in the order SuperYacht Times shows them.",
            "maxItems": 5,
            "items": {
              "$ref": "#/components/schemas/Photo"
            }
          }
        }
      },
      "StandardYacht": {
        "type": "object",
        "title": "Standard",
        "description": "The Standard layout: identity, main dimensions, build, description and up to five\nexterior photos.\n",
        "additionalProperties": false,
        "required": [
          "id",
          "slug",
          "imo",
          "name",
          "type",
          "length",
          "beam",
          "original_name",
          "description",
          "mmsi",
          "flag",
          "build"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/YachtId"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ],
            "description": "The yacht's name in its superyachttimes.com URL."
          },
          "imo": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The IMO number; `null` when the yacht has none."
          },
          "name": {
            "type": "string",
            "description": "The yacht's current name; an empty string when unknown."
          },
          "type": {
            "$ref": "#/components/schemas/YachtType"
          },
          "length": {
            "$ref": "#/components/schemas/Decimal",
            "description": "Length overall in metres."
          },
          "beam": {
            "$ref": "#/components/schemas/Decimal",
            "description": "Beam (breadth) in metres."
          },
          "original_name": {
            "type": "string",
            "const": "N/A",
            "description": "Always `N/A`. Kept for compatibility; previous names are not in this layout."
          },
          "description": {
            "type": "string",
            "description": "The yacht's description; an empty string when there is none."
          },
          "mmsi": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The MMSI of the current registration; `null` when there is none."
          },
          "flag": {
            "type": [
              "string",
              "null"
            ],
            "description": "The flag state (country name) of the current registration."
          },
          "build": {
            "$ref": "#/components/schemas/Build"
          },
          "photos": {
            "$ref": "#/components/schemas/Photos"
          }
        }
      },
      "NamedOrNull": {
        "description": "An object with a name, or `null`.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/Name"
          },
          {
            "type": "null"
          }
        ]
      },
      "Party": {
        "type": [
          "object",
          "null"
        ],
        "description": "A company or facility and its country; `null` when not recorded.",
        "additionalProperties": false,
        "required": [
          "name",
          "country"
        ],
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name."
          },
          "country": {
            "$ref": "#/components/schemas/NamedOrNull"
          }
        }
      },
      "Propulsion": {
        "type": "object",
        "description": "A propulsion system.",
        "additionalProperties": false,
        "required": [
          "type",
          "count"
        ],
        "properties": {
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "The kind of propulsion.",
            "enum": [
              "waterjet",
              "propellers",
              "surface_drives",
              "pods",
              "azimuth_thrusters",
              "sterndrive",
              "tunnel_thrusters",
              null
            ]
          },
          "count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How many."
          }
        }
      },
      "Casualty": {
        "type": "object",
        "description": "An incident involving the yacht.",
        "additionalProperties": false,
        "required": [
          "type",
          "description",
          "date",
          "city",
          "country"
        ],
        "properties": {
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "The kind of incident.",
            "enum": [
              "fire",
              "damage",
              "legal",
              null
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "What happened."
          },
          "date": {
            "$ref": "#/components/schemas/Date"
          },
          "city": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where it happened."
          },
          "country": {
            "$ref": "#/components/schemas/NamedOrNull"
          }
        }
      },
      "Designer": {
        "type": "object",
        "description": "One designer, keyed by discipline, for example\n`{\"exterior\": {\"company\": {\"name\": \"Nuvolari Lenard\"}}}`.\n",
        "minProperties": 1,
        "maxProperties": 1,
        "additionalProperties": false,
        "properties": {
          "not_specified": {
            "$ref": "#/components/schemas/DesignerCompany"
          },
          "naval": {
            "$ref": "#/components/schemas/DesignerCompany"
          },
          "exterior": {
            "$ref": "#/components/schemas/DesignerCompany"
          },
          "interior": {
            "$ref": "#/components/schemas/DesignerCompany"
          },
          "decoration": {
            "$ref": "#/components/schemas/DesignerCompany"
          }
        }
      },
      "DesignerCompany": {
        "type": "object",
        "description": "The design company.",
        "additionalProperties": false,
        "required": [
          "company"
        ],
        "properties": {
          "company": {
            "$ref": "#/components/schemas/Name"
          }
        }
      },
      "Job": {
        "type": "object",
        "description": "A crew or staff position on the yacht.",
        "additionalProperties": false,
        "required": [
          "job_title",
          "active",
          "person"
        ],
        "properties": {
          "job_title": {
            "type": "string",
            "description": "The position, for example `Captain`."
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the person holds the position now."
          },
          "person": {
            "description": "Who holds the position; `null` when not recorded.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PersonName"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "ManagementParty": {
        "type": "object",
        "description": "A company or person managing or representing the yacht.",
        "additionalProperties": false,
        "required": [
          "type",
          "company",
          "person"
        ],
        "properties": {
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "The role.",
            "enum": [
              "yacht_management",
              "owners_representative",
              "ISM_Management",
              "broker",
              "family_office",
              null
            ]
          },
          "company": {
            "$ref": "#/components/schemas/NamedOrNull"
          },
          "person": {
            "description": "The person; `null` when not recorded.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PersonName"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "OwnershipType": {
        "type": "string",
        "description": "The kind of ownership; an empty string when unknown.",
        "enum": [
          "Beneficial owner",
          "Speculation",
          "Bank owned",
          "Trade-in",
          ""
        ]
      },
      "CompanyOwner": {
        "type": "object",
        "title": "Company owner",
        "description": "An owner that is a company.",
        "additionalProperties": false,
        "required": [
          "name",
          "active",
          "start_date",
          "starting_deal_id",
          "end_date",
          "ending_deal_id",
          "nationality",
          "residence",
          "type"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "The owner's name."
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether this is a current owner."
          },
          "start_date": {
            "$ref": "#/components/schemas/Date"
          },
          "starting_deal_id": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The id of the deal that started the ownership, when it is in your data."
          },
          "end_date": {
            "$ref": "#/components/schemas/Date"
          },
          "ending_deal_id": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The id of the deal that ended the ownership, when it is in your data."
          },
          "nationality": {
            "type": [
              "string",
              "null"
            ],
            "description": "The owner's nationality (country name)."
          },
          "residence": {
            "type": [
              "string",
              "null"
            ],
            "description": "The owner's country of residence."
          },
          "type": {
            "$ref": "#/components/schemas/OwnershipType"
          }
        }
      },
      "PersonOwner": {
        "type": "object",
        "title": "Person owner",
        "description": "An owner that is a person. Has `gender` and `date_of_birth`, which a company owner lacks.",
        "additionalProperties": false,
        "required": [
          "name",
          "active",
          "start_date",
          "starting_deal_id",
          "end_date",
          "ending_deal_id",
          "nationality",
          "residence",
          "type",
          "gender",
          "date_of_birth"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "The owner's name."
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether this is a current owner."
          },
          "start_date": {
            "$ref": "#/components/schemas/Date"
          },
          "starting_deal_id": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The id of the deal that started the ownership, when it is in your data."
          },
          "end_date": {
            "$ref": "#/components/schemas/Date"
          },
          "ending_deal_id": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The id of the deal that ended the ownership, when it is in your data."
          },
          "nationality": {
            "type": [
              "string",
              "null"
            ],
            "description": "The owner's nationality (country name)."
          },
          "residence": {
            "type": [
              "string",
              "null"
            ],
            "description": "The owner's country of residence."
          },
          "type": {
            "$ref": "#/components/schemas/OwnershipType"
          },
          "gender": {
            "type": "string",
            "description": "The owner's gender. `female` is also given when it is not recorded.",
            "enum": [
              "male",
              "female"
            ]
          },
          "date_of_birth": {
            "$ref": "#/components/schemas/Date"
          }
        }
      },
      "Owner": {
        "description": "An identified owner, a company or a person.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/CompanyOwner"
          },
          {
            "$ref": "#/components/schemas/PersonOwner"
          }
        ]
      },
      "ExtendedPhoto": {
        "type": "object",
        "description": "A SuperYacht Times photo of the yacht.",
        "additionalProperties": false,
        "required": [
          "id",
          "primary",
          "url",
          "categories"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "description": "The photo's id."
          },
          "primary": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether this is the yacht's main photo."
          },
          "url": {
            "type": "object",
            "description": "The image in four sizes.",
            "additionalProperties": false,
            "required": [
              "small",
              "medium",
              "large",
              "extra_large"
            ],
            "properties": {
              "small": {
                "$ref": "#/components/schemas/PhotoUrl"
              },
              "medium": {
                "$ref": "#/components/schemas/PhotoUrl"
              },
              "large": {
                "$ref": "#/components/schemas/PhotoUrl"
              },
              "extra_large": {
                "$ref": "#/components/schemas/PhotoUrl"
              }
            }
          },
          "categories": {
            "type": "array",
            "description": "What the photo shows; a photo can have several categories.",
            "items": {
              "$ref": "#/components/schemas/PhotoCategory"
            }
          }
        }
      },
      "Phase": {
        "type": "object",
        "description": "A stage in the yacht's life, such as its build.",
        "additionalProperties": false,
        "required": [
          "type",
          "hull_id",
          "start_date",
          "end_date",
          "company",
          "facility"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "The kind of phase, for example `Build`, `InOperation` or `Refit`."
          },
          "hull_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The builder's hull number for this phase."
          },
          "start_date": {
            "$ref": "#/components/schemas/Date"
          },
          "end_date": {
            "$ref": "#/components/schemas/Date"
          },
          "company": {
            "$ref": "#/components/schemas/Party"
          },
          "facility": {
            "$ref": "#/components/schemas/Party"
          }
        }
      },
      "Refit": {
        "type": "object",
        "description": "A refit or yard visit.",
        "additionalProperties": false,
        "required": [
          "status",
          "type",
          "start_date",
          "end_date",
          "company",
          "facility"
        ],
        "properties": {
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where the refit stands.",
            "enum": [
              "planned",
              "active",
              "completed",
              null
            ]
          },
          "type": {
            "type": "string",
            "description": "The kind of work; an empty string when unknown.",
            "enum": [
              "refit",
              "re-build",
              "warranty",
              "maintenance",
              "unknown_yard_visit",
              "retrofit",
              ""
            ]
          },
          "start_date": {
            "$ref": "#/components/schemas/Date"
          },
          "end_date": {
            "$ref": "#/components/schemas/Date"
          },
          "company": {
            "$ref": "#/components/schemas/Party"
          },
          "facility": {
            "$ref": "#/components/schemas/Party"
          }
        }
      },
      "IsoCurrency": {
        "type": [
          "string",
          "null"
        ],
        "description": "An ISO 4217 currency code; `null` when not recorded.",
        "enum": [
          "EUR",
          "USD",
          "GBP",
          null
        ]
      },
      "ExtendedPrice": {
        "type": "object",
        "description": "A list price. `amount` is in the price's own currency; `price_eur`, `price_usd` and\n`price_gbp` are the amount converted at that date's rate.\n",
        "additionalProperties": false,
        "required": [
          "date",
          "amount",
          "currency",
          "primary_currency",
          "price_eur",
          "price_usd",
          "price_gbp",
          "price_unknown",
          "price_on_application"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "description": "The date the price was set, `YYYY-MM-DD`."
          },
          "amount": {
            "type": [
              "number",
              "null"
            ],
            "description": "The price in its own currency."
          },
          "currency": {
            "$ref": "#/components/schemas/IsoCurrency"
          },
          "primary_currency": {
            "$ref": "#/components/schemas/IsoCurrency"
          },
          "price_eur": {
            "type": [
              "number",
              "null"
            ],
            "description": "The price in euros."
          },
          "price_usd": {
            "type": [
              "number",
              "null"
            ],
            "description": "The price in US dollars."
          },
          "price_gbp": {
            "type": [
              "number",
              "null"
            ],
            "description": "The price in pounds sterling."
          },
          "price_unknown": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "True when the price is not known."
          },
          "price_on_application": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "True when the price is on application."
          }
        }
      },
      "ListingParty": {
        "type": "object",
        "description": "A broker or other party that lists the yacht for this sale.",
        "additionalProperties": false,
        "required": [
          "party_name",
          "party_type",
          "listing_type",
          "active",
          "success",
          "start_date",
          "end_date"
        ],
        "properties": {
          "party_name": {
            "type": "string",
            "description": "The party's name."
          },
          "party_type": {
            "type": "string",
            "description": "Whether the party is a company or a person.",
            "enum": [
              "Company",
              "Person"
            ]
          },
          "listing_type": {
            "type": "string",
            "description": "How the yacht is listed: `Ca` (central agency), `Owner direct` or `Shipyard`; an empty\nstring when unknown.\n",
            "enum": [
              "Ca",
              "Owner direct",
              "Shipyard",
              ""
            ]
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the listing is current."
          },
          "success": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether this party sold the yacht."
          },
          "start_date": {
            "$ref": "#/components/schemas/Date"
          },
          "end_date": {
            "$ref": "#/components/schemas/Date"
          }
        }
      },
      "SalesLocation": {
        "type": "object",
        "description": "Where the deal was made.",
        "additionalProperties": false,
        "required": [
          "country",
          "state",
          "city",
          "geo_location"
        ],
        "properties": {
          "country": {
            "type": [
              "string",
              "null"
            ],
            "description": "The country's name."
          },
          "state": {
            "type": [
              "string",
              "null"
            ],
            "description": "The US state's name, for a deal in the United States; otherwise `null`."
          },
          "city": {
            "type": [
              "string",
              "null"
            ],
            "description": "The city."
          },
          "geo_location": {
            "description": "The location's coordinates; `null` when not recorded.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/Coordinates"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "DealParty": {
        "type": "object",
        "description": "A party to the deal, such as a broker.",
        "additionalProperties": false,
        "required": [
          "party_name",
          "party_type"
        ],
        "properties": {
          "party_name": {
            "type": "string",
            "description": "The party's name."
          },
          "party_type": {
            "type": "string",
            "description": "Whether the party is a company or a person.",
            "enum": [
              "Company",
              "Person"
            ]
          }
        }
      },
      "DealFields": {
        "type": "object",
        "description": "The fields every deal has.",
        "required": [
          "id",
          "type",
          "parties",
          "sales_location"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "description": "The deal's id."
          },
          "type": {
            "type": "string",
            "description": "The kind of deal; an empty string when unknown.",
            "enum": [
              "Sold - speculation",
              "Sold - new order",
              "Sold - in-build resold",
              "Sold - on-hold resold",
              "Sold - stock",
              "Sold - trade in",
              "Sold - used",
              "Sold - auction",
              "Sold - part ownership",
              "Sold - ship",
              "Sold - wreck",
              "Completion order",
              "Conversion order",
              "Confiscation",
              "Inherit",
              "Speculation started",
              "Gifted",
              "Contract cancelled",
              "Yacht lost",
              ""
            ]
          },
          "parties": {
            "type": "array",
            "description": "The parties to the deal.",
            "items": {
              "$ref": "#/components/schemas/DealParty"
            }
          },
          "sales_location": {
            "$ref": "#/components/schemas/SalesLocation"
          }
        }
      },
      "Deal": {
        "title": "Deal",
        "description": "The deal that ended the sale.",
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/DealFields"
          }
        ],
        "unevaluatedProperties": false
      },
      "ExtendedSaleFields": {
        "type": "object",
        "description": "The fields every sale has.",
        "required": [
          "id",
          "status",
          "type",
          "start_date",
          "end_date",
          "asking_price",
          "price_history",
          "listing_parties"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "description": "The sale's id."
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where the sale stands.",
            "enum": [
              "active",
              "withdrawn",
              "sold",
              "offered",
              "inherit",
              null
            ]
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "The kind of sale; an empty string for an unknown kind, `null` when not recorded.",
            "enum": [
              "used - owner",
              "used - trade in shipyard",
              "bank owned",
              "new - stock",
              "new - speculation",
              "new - owner",
              "wreck",
              "part ownership",
              "",
              null
            ]
          },
          "start_date": {
            "$ref": "#/components/schemas/Date"
          },
          "end_date": {
            "$ref": "#/components/schemas/Date"
          },
          "asking_price": {
            "description": "The newest list price of this sale; `null` when there is none.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ExtendedPrice"
              },
              {
                "type": "null"
              }
            ]
          },
          "price_history": {
            "type": "array",
            "description": "Every dated list price of this sale, newest first.",
            "items": {
              "$ref": "#/components/schemas/ExtendedPrice"
            }
          },
          "listing_parties": {
            "type": "array",
            "description": "The parties listing the yacht for this sale.",
            "items": {
              "$ref": "#/components/schemas/ListingParty"
            }
          }
        }
      },
      "ExtendedSale": {
        "title": "Sale",
        "description": "A sale of the yacht, with its prices, listings and closing deal.",
        "allOf": [
          {
            "$ref": "#/components/schemas/ExtendedSaleFields"
          }
        ],
        "type": "object",
        "required": [
          "deal"
        ],
        "properties": {
          "deal": {
            "description": "The deal that ended the sale; `null` when there is none.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/Deal"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "unevaluatedProperties": false
      },
      "ExtendedYachtFields": {
        "type": "object",
        "description": "The fields of the Extended layout that every variant shares. `owners` and `sales` differ\nby layout and are defined in each one.\n",
        "required": [
          "id",
          "slug",
          "yacht_like_id",
          "mmsi",
          "imo",
          "volume",
          "guest_count",
          "crew_size",
          "guest_cabins",
          "crew_cabins",
          "max_speed",
          "cruise_speed",
          "fuel_capacity",
          "water_capacity",
          "draught_max",
          "draught_min",
          "hull_materials",
          "hull_type",
          "hull_configuration",
          "number_of_masts",
          "number_of_decks",
          "rig_type",
          "yacht_class",
          "superstructure_materials",
          "range",
          "range_at",
          "status",
          "type",
          "subtypes",
          "model",
          "port_of_registration",
          "flag",
          "call_sign",
          "length_overall",
          "length_at_waterline",
          "beam",
          "name",
          "previous_names",
          "engines",
          "propulsion",
          "casualties",
          "designers",
          "jobs",
          "management_parties",
          "photos",
          "phases",
          "refits"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/YachtId"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ],
            "description": "The yacht's name in its superyachttimes.com URL."
          },
          "yacht_like_id": {
            "type": "integer",
            "description": "The yacht's internal number. `/yachts/{id}` also accepts it."
          },
          "mmsi": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The MMSI of the current registration; `null` when there is none."
          },
          "imo": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The IMO number; `null` when the yacht has none."
          },
          "volume": {
            "type": [
              "number",
              "null"
            ],
            "description": "Gross tonnage."
          },
          "guest_count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of guests."
          },
          "crew_size": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of crew."
          },
          "guest_cabins": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of guest cabins."
          },
          "crew_cabins": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of crew cabins."
          },
          "max_speed": {
            "$ref": "#/components/schemas/Decimal",
            "description": "Maximum speed in knots."
          },
          "cruise_speed": {
            "$ref": "#/components/schemas/Decimal",
            "description": "Cruising speed in knots."
          },
          "fuel_capacity": {
            "type": [
              "number",
              "null"
            ],
            "description": "Fuel capacity in litres."
          },
          "water_capacity": {
            "type": [
              "number",
              "null"
            ],
            "description": "Fresh water capacity in litres."
          },
          "draught_max": {
            "$ref": "#/components/schemas/Decimal",
            "description": "Maximum draught in metres."
          },
          "draught_min": {
            "$ref": "#/components/schemas/Decimal",
            "description": "Minimum draught in metres."
          },
          "hull_materials": {
            "type": "array",
            "description": "The hull materials.",
            "items": {
              "$ref": "#/components/schemas/NamedOrNull"
            }
          },
          "hull_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "The hull type.",
            "enum": [
              "mono_hull",
              "catamaran",
              "trimaran",
              null
            ]
          },
          "hull_configuration": {
            "type": [
              "string",
              "null"
            ],
            "description": "The hull configuration.",
            "enum": [
              "Displacement",
              "Planning",
              "Semi-displacement",
              "Fast-displacement",
              null
            ]
          },
          "number_of_masts": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of masts."
          },
          "number_of_decks": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of decks."
          },
          "rig_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "The rig type of a sailing yacht."
          },
          "yacht_class": {
            "type": [
              "string",
              "null"
            ],
            "description": "The classification society."
          },
          "superstructure_materials": {
            "type": "array",
            "description": "The superstructure materials.",
            "items": {
              "$ref": "#/components/schemas/NamedOrNull"
            }
          },
          "range": {
            "type": [
              "number",
              "null"
            ],
            "description": "Range in nautical miles, at `range_at` knots."
          },
          "range_at": {
            "$ref": "#/components/schemas/Decimal",
            "description": "The speed in knots the range is measured at."
          },
          "status": {
            "type": "string",
            "description": "The yacht's current stage of life, for example `In operation`, `In build`,\n`Complete loss`, `Out of service`, `On hold`, `Under conversion`, `Cancelled`; `None`\nwhen not recorded.\n"
          },
          "type": {
            "$ref": "#/components/schemas/YachtType"
          },
          "subtypes": {
            "type": "array",
            "description": "The yacht's subtypes, for example `Sport Fisherman`.",
            "items": {
              "type": "string"
            }
          },
          "model": {
            "type": [
              "string",
              "null"
            ],
            "description": "The builder's model or series."
          },
          "port_of_registration": {
            "type": [
              "string",
              "null"
            ],
            "description": "The port of the current registration."
          },
          "flag": {
            "type": [
              "string",
              "null"
            ],
            "description": "The flag state (country name) of the current registration."
          },
          "call_sign": {
            "type": [
              "string",
              "null"
            ],
            "description": "The call sign of the current registration."
          },
          "length_overall": {
            "$ref": "#/components/schemas/Decimal",
            "description": "Length overall in metres."
          },
          "length_at_waterline": {
            "$ref": "#/components/schemas/Decimal",
            "description": "Length at the waterline in metres."
          },
          "beam": {
            "$ref": "#/components/schemas/Decimal",
            "description": "Beam (breadth) in metres."
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The yacht's current name."
          },
          "previous_names": {
            "type": "array",
            "description": "The yacht's previous names.",
            "items": {
              "type": "string"
            }
          },
          "engines": {
            "type": "array",
            "description": "The engines on board.",
            "items": {
              "$ref": "#/components/schemas/Engine"
            }
          },
          "propulsion": {
            "type": "array",
            "description": "The propulsion systems.",
            "items": {
              "$ref": "#/components/schemas/Propulsion"
            }
          },
          "casualties": {
            "type": "array",
            "description": "Incidents involving the yacht.",
            "items": {
              "$ref": "#/components/schemas/Casualty"
            }
          },
          "designers": {
            "type": "array",
            "description": "The design companies, one per entry, keyed by discipline.",
            "items": {
              "$ref": "#/components/schemas/Designer"
            }
          },
          "jobs": {
            "type": "array",
            "description": "Crew and staff positions on the yacht.",
            "items": {
              "$ref": "#/components/schemas/Job"
            }
          },
          "management_parties": {
            "type": "array",
            "description": "Companies and people managing or representing the yacht.",
            "items": {
              "$ref": "#/components/schemas/ManagementParty"
            }
          },
          "photos": {
            "type": "array",
            "description": "Every SuperYacht Times photo of the yacht.",
            "items": {
              "$ref": "#/components/schemas/ExtendedPhoto"
            }
          },
          "phases": {
            "type": "array",
            "description": "The stages of the yacht's life, such as its build.",
            "items": {
              "$ref": "#/components/schemas/Phase"
            }
          },
          "refits": {
            "type": "array",
            "description": "Refits and yard visits.",
            "items": {
              "$ref": "#/components/schemas/Refit"
            }
          }
        }
      },
      "ExtendedYacht": {
        "title": "Standard + Extended",
        "description": "The Extended layout: the full yacht record, with specifications, owners, crew positions,\nmanagement, incidents, life stages, refits, sales and deals.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/ExtendedYachtFields"
          }
        ],
        "type": "object",
        "required": [
          "owners",
          "sales"
        ],
        "properties": {
          "owners": {
            "type": "array",
            "description": "The yacht's owners, current and past, where identified.",
            "items": {
              "$ref": "#/components/schemas/Owner"
            }
          },
          "sales": {
            "type": "array",
            "description": "The yacht's sales, with prices, listings and deals.",
            "items": {
              "$ref": "#/components/schemas/ExtendedSale"
            }
          }
        },
        "unevaluatedProperties": false
      },
      "DemoYacht": {
        "title": "Demo",
        "description": "The demo layout: the Extended record over a small set of yachts (the ten longest yachts\nfor sale with an asking price).\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/ExtendedYachtFields"
          }
        ],
        "type": "object",
        "required": [
          "owners",
          "sales"
        ],
        "properties": {
          "owners": {
            "type": "array",
            "description": "The yacht's owners, current and past, where identified.",
            "items": {
              "$ref": "#/components/schemas/Owner"
            }
          },
          "sales": {
            "type": "array",
            "description": "The yacht's sales, with prices, listings and deals.",
            "items": {
              "$ref": "#/components/schemas/ExtendedSale"
            }
          }
        },
        "unevaluatedProperties": false
      },
      "YachtDetail": {
        "description": "One of the layouts below; which one is decided by your product and is the same for every\nyacht you read. The payload has no field that names the layout. Several layouts can\ndescribe the same payload (a demo yacht looks the same as an Extended one), so this is `anyOf`, not `oneOf`.\n",
        "anyOf": [
          {
            "$ref": "#/components/schemas/StandardYacht"
          },
          {
            "$ref": "#/components/schemas/ExtendedYacht"
          },
          {
            "$ref": "#/components/schemas/DemoYacht"
          }
        ]
      }
    }
  }
}