{
  "$ref": "#/definitions/pair-claim",
  "definitions": {
    "pair-claim": {
      "type": "object",
      "properties": {
        "jws": {
          "type": "string",
          "minLength": 20
        },
        "devicePubKey": {
          "type": "object",
          "additionalProperties": {}
        },
        "attestation": {
          "type": "string"
        },
        "device": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "maxLength": 100
            },
            "platform": {
              "type": "string",
              "enum": [
                "ios",
                "android",
                "other"
              ]
            }
          },
          "required": [
            "name",
            "platform"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "jws",
        "devicePubKey",
        "device"
      ],
      "additionalProperties": false
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schwaizer.ch/ocp/schemas/1.0/pair-claim.json"
}
