{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/EmployeeCustomFields",
  "title": "EmployeeCustomFields",
  "type": "object",
  "properties": {
    "options": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "An array of possible options for the custom field.",
      "example": [
        "Not Started",
        "In Progress",
        "Completed",
        "Overdue"
      ]
    },
    "id": {
      "type": "string",
      "description": "The unique identifier for the custom field, which defaults to the name property if the ID is not accessible.",
      "example": "custom_field_123"
    },
    "name": {
      "type": "string",
      "description": "The name of the custom field.",
      "example": "Training Completion Status"
    },
    "description": {
      "type": "string",
      "description": "The description of the custom field.",
      "example": "The completion status of the employee's training."
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/components/schemas/EmployeeCustomFieldTypeEnum"
        }
      ],
      "description": "The type of the custom field.",
      "example": "Dropdown"
    },
    "value": {
      "type": "object",
      "description": "The value associated with the custom field.",
      "example": "Completed"
    },
    "value_id": {
      "type": "string",
      "description": "The unique identifier for the value of the custom field.",
      "example": "value_456"
    }
  }
}