{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/romm/json-schema/romm-device-auth-init-payload-schema.json",
  "title": "DeviceAuthInitPayload",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/romm-device-auth-api-openapi.yml#/components/schemas/DeviceAuthInitPayload",
  "properties": {
    "client_device_identifier": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Client Device Identifier"
    },
    "name": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Name"
    },
    "client": {
      "type": "string",
      "maxLength": 50,
      "minLength": 1,
      "title": "Client"
    },
    "platform": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 50
        },
        {
          "type": "null"
        }
      ],
      "title": "Platform"
    },
    "client_version": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 50
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Version"
    },
    "requested_scopes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 22,
      "minItems": 1,
      "title": "Requested Scopes"
    }
  },
  "type": "object",
  "required": [
    "client_device_identifier",
    "name",
    "client",
    "requested_scopes"
  ]
}