{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codai-ro/json-schema/codai-ro-device-patch-schema.json",
  "title": "Device patch",
  "description": "At least one of the two fields is required.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codai-ro-devices-api-openapi.yml#/components/schemas/DevicePatch",
  "type": "object",
  "properties": {
    "push_token": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 8,
      "maxLength": 4096,
      "description": "FCM registration token (opaque ASCII, trimmed). `null` clears it."
    },
    "capabilities": {
      "type": "array",
      "maxItems": 64,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "description": "Replaces the whole capability list."
    }
  }
}