{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/CreatePublicKeyDeviceCredentialRequestContent",
"title": "CreatePublicKeyDeviceCredentialRequestContent",
"type": "object",
"additionalProperties": true,
"required": [
"device_name",
"type",
"value",
"device_id"
],
"properties": {
"device_name": {
"type": "string",
"description": "Name for this device easily recognized by owner.",
"minLength": 1
},
"type": {
"$ref": "#/components/schemas/DeviceCredentialPublicKeyTypeEnum"
},
"value": {
"type": "string",
"description": "Base64 encoded string containing the credential.",
"minLength": 1
},
"device_id": {
"type": "string",
"description": "Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor.",
"maxLength": 36,
"pattern": "^[-A-Fa-f0-9]+$"
},
"client_id": {
"type": "string",
"description": "client_id of the client (application) this credential is for.",
"format": "client-id"
}
}
}