{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UserDevice",
  "title": "UserDevice",
  "type": "object",
  "description": "Details of a device associated with the user.",
  "example": {
    "description": [],
    "model": "DMS Cisco 8865",
    "mac": "110723241134",
    "primaryOwner": true,
    "type": "PRIMARY",
    "owner": {
      "lastName": "Mac",
      "firstName": "Jone",
      "type": "PEOPLE"
    },
    "activationState": "ACTIVATED"
  },
  "required": [
    "description",
    "model",
    "mac",
    "primaryOwner",
    "type",
    "owner",
    "activationState"
  ],
  "properties": {
    "description": {
      "type": "array",
      "items": {
        "type": "string",
        "example": "[]",
        "description": "A tag used to describe the device."
      },
      "description": "Comma separated array of tags used to describe device."
    },
    "model": {
      "type": "string",
      "example": "DMS Cisco 8865",
      "description": "Identifier for device model."
    },
    "mac": {
      "type": "string",
      "example": "110723241134",
      "description": "MAC address of the device."
    },
    "primaryOwner": {
      "type": "boolean",
      "example": true,
      "description": "Indicates whether the person or the workspace is the owner of the device, and points to a primary Line/Port of the device."
    },
    "type": {
      "$ref": "#/components/schemas/DeviceTypeObject"
    },
    "owner": {
      "$ref": "#/components/schemas/OwnerObject"
    },
    "activationState": {
      "$ref": "#/components/schemas/DeviceActivationState"
    }
  }
}