{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/shareworks/main/json-schema/CompanyBoardAppointmentDetails.json",
  "title": "Company Board Appointment Response",
  "required": [
    "appointmentId",
    "dateAppointed",
    "email",
    "isDeleted",
    "isDirector",
    "isIndependent",
    "isOfficer",
    "name",
    "stakeholderId",
    "title"
  ],
  "type": "object",
  "properties": {
    "appointmentId": {
      "type": "integer",
      "description": "Identifier for the company board appointment",
      "format": "int32"
    },
    "stakeholderId": {
      "type": "integer",
      "description": "Identifier for the stakeholder",
      "format": "int32"
    },
    "name": {
      "type": "string",
      "description": "Formatted full name for the stakeholder"
    },
    "email": {
      "type": "string",
      "description": "Personal email address for the stakeholder"
    },
    "title": {
      "type": "string",
      "description": "Title of the stakeholder position on the board (e.g. CFO)"
    },
    "isIndependent": {
      "type": "boolean",
      "description": "Whether the company board appointment is an independent"
    },
    "isDirector": {
      "type": "boolean",
      "description": "Whether the company board appointment is a director"
    },
    "isOfficer": {
      "type": "boolean",
      "description": "Whether the company board appointment is an officer"
    },
    "isDeleted": {
      "type": "boolean",
      "description": "Whether the company board appointment has been removed"
    },
    "dateAppointed": {
      "type": "string",
      "description": "Date of appointment for the company board appointment",
      "format": "date"
    },
    "dateApproved": {
      "type": "string",
      "description": "Date of approval for the company board appointment",
      "format": "date"
    },
    "dateTerminated": {
      "type": "string",
      "description": "Date of termination for the company board appointment",
      "format": "date"
    },
    "note": {
      "type": "string",
      "description": "Notes for the company board appointment"
    }
  }
}