{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chartercaptain-com/json-schema/chartercaptain-com-customer-gig-detail-schema.json",
  "title": "CustomerGigDetail",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chartercaptain-com-openapi.json#/components/schemas/CustomerGigDetail",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "harbor": {
      "type": "string"
    },
    "boatTypes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "POWERBOAT",
          "SAILBOAT",
          "YACHT",
          "PONTOON",
          "FISHING"
        ]
      },
      "default": []
    },
    "date": {
      "type": "string",
      "format": "date"
    },
    "startTime": {
      "type": [
        "string",
        "null"
      ]
    },
    "duration": {
      "type": "string"
    },
    "compensationCents": {
      "type": [
        "integer",
        "null"
      ]
    },
    "needsCaptain": {
      "type": "boolean"
    },
    "needsBoat": {
      "type": "boolean"
    },
    "status": {
      "type": "string"
    },
    "bids": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slot": {
            "type": "string",
            "enum": [
              "CAPTAIN",
              "BOAT"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SUBMITTED",
              "SELECTED",
              "APPROVED",
              "VETOED",
              "WITHDRAWN"
            ]
          },
          "proposedRateCents": {
            "type": "integer"
          },
          "message": {
            "type": [
              "string",
              "null"
            ]
          },
          "bidderTenant": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "displayName": {
                "type": "string"
              },
              "slug": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "displayName"
            ]
          },
          "boat": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ]
          }
        },
        "required": [
          "id",
          "slot",
          "status",
          "proposedRateCents",
          "bidderTenant"
        ]
      }
    },
    "convertedBooking": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "date": {
          "type": "string",
          "format": "date"
        }
      },
      "required": [
        "id",
        "status",
        "date"
      ]
    }
  },
  "required": [
    "id",
    "title",
    "harbor",
    "date",
    "duration",
    "needsCaptain",
    "needsBoat",
    "status",
    "bids"
  ]
}