{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eaton/json-schema/eaton-device-schema.json",
  "title": "Device",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eaton-devices-api-openapi.yml#/components/schemas/Device",
  "type": "object",
  "required": [
    "id",
    "locationId",
    "hardwareType"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "locationId": {
      "type": "string",
      "format": "uuid"
    },
    "hardwareType": {
      "type": "string",
      "enum": [
        "emcb",
        "ev-emcb"
      ]
    },
    "sku": {
      "type": "string"
    },
    "serialNumber": {
      "type": "string"
    },
    "chargerStationId": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": "string"
    },
    "firmwareVersion": {
      "type": "string"
    }
  }
}