{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://artifacts.apis.io/fareharbor/json-schema/fareharbor-roles-response-json-schema-schema.json",
  "title": "Roles Response",
  "description": "Response containing the list of roles available for a company.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fareharbor-roles-endpoints-api-openapi.yml#/components/schemas/ROLES_RESPONSE_JSON_SCHEMA",
  "additionalProperties": false,
  "definitions": {
    "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 used for identification and assignment.",
          "type": "string"
        }
      },
      "required": [
        "pk",
        "short_name"
      ],
      "type": "object"
    }
  },
  "properties": {
    "roles": {
      "description": "List of roles available for assignment to crew members.",
      "items": {
        "$ref": "#/$defs/role"
      },
      "type": "array"
    }
  },
  "required": [
    "roles"
  ],
  "type": "object"
}