{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://artifacts.apis.io/fareharbor/json-schema/fareharbor-crew-member-response-json-schema-schema.json",
  "title": "Crew Member Response",
  "description": "Response containing a single crew member assignment.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fareharbor-crew-members-endpoints-api-openapi.yml#/components/schemas/CREW_MEMBER_RESPONSE_JSON_SCHEMA",
  "additionalProperties": false,
  "definitions": {
    "crew_member": {
      "additionalProperties": false,
      "description": "A user assigned to work on a specific availability.",
      "properties": {
        "note": {
          "description": "A text note providing additional context about the crew member's assignment.",
          "type": "string"
        },
        "pk": {
          "description": "The crew member's unique identifier.",
          "format": "int32",
          "type": "number"
        },
        "role": {
          "$ref": "#/$defs/role",
          "description": "The role assigned to the crew member, if any."
        },
        "user": {
          "$ref": "#/$defs/user",
          "description": "The user assigned as a crew member."
        }
      },
      "required": [
        "pk",
        "user"
      ],
      "type": "object"
    },
    "role": {
      "additionalProperties": false,
      "description": "A specific position or responsibility that can be assigned to crew members.",
      "properties": {
        "pk": {
          "description": "The role's unique identifier.",
          "format": "int32",
          "type": "number"
        },
        "short_name": {
          "description": "The role's short name or title.",
          "type": "string"
        }
      },
      "required": [
        "pk",
        "short_name"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "user": {
      "additionalProperties": false,
      "description": "A person who can be assigned as a crew member.",
      "properties": {
        "name": {
          "description": "The user's full name.",
          "type": "string"
        },
        "username": {
          "description": "The user's unique username.",
          "type": "string"
        }
      },
      "required": [
        "name",
        "username"
      ],
      "type": "object"
    }
  },
  "properties": {
    "crew_member": {
      "$ref": "#/$defs/crew_member",
      "description": "The crew member assignment details."
    }
  },
  "required": [
    "crew_member"
  ],
  "type": "object"
}