{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnautical-com/json-schema/arcnautical-com-create-fleet-request-schema.json",
  "title": "CreateFleetRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arcnautical-com-fleets-api-openapi.yml#/components/schemas/CreateFleetRequest",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "imos": {
      "type": "array",
      "description": "IMO strings or FleetVesselInput objects. De-duplicated by IMO.",
      "items": {
        "oneOf": [
          {
            "type": "string",
            "description": "Seven-digit IMO number."
          },
          {
            "$ref": "#/$defs/FleetVesselInput"
          }
        ]
      }
    }
  },
  "$defs": {
    "FleetVesselInput": {
      "type": "object",
      "description": "A bare IMO string is also accepted wherever this object is.",
      "required": [
        "imo"
      ],
      "properties": {
        "imo": {
          "type": "string",
          "description": "Seven-digit IMO number."
        },
        "customer_reference": {
          "type": "string",
          "maxLength": 200,
          "description": "Your own identifier for this hull."
        }
      }
    }
  }
}