{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/romm/json-schema/romm-device-auth-approve-payload-schema.json",
  "title": "DeviceAuthApprovePayload",
  "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/DeviceAuthApprovePayload",
  "properties": {
    "user_code": {
      "type": "string",
      "maxLength": 32,
      "minLength": 1,
      "title": "User Code"
    },
    "approved_scopes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "minItems": 1,
      "title": "Approved Scopes"
    },
    "device_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "title": "Device Name"
    },
    "expires_in": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires In"
    }
  },
  "type": "object",
  "required": [
    "user_code",
    "approved_scopes"
  ]
}