{
  "type": "object",
  "definitions": {
    "JsonWebKeyTestGroup": {
      "type": "object",
      "properties": {
        "type": {
          "enum": [
            "JsonWebKey"
          ]
        },
        "source": {
          "$ref": "common.json#/definitions/Source"
        },
        "comment": {
          "type": "string",
          "description": "a description of what these tests have in common"
        },
        "private": {
          "$ref": "json_web_crypto_common.json#/definitions/JsonWebKeyset",
          "description": "the private or secret keyset in webcrypto format"
        },
        "public": {
          "$ref": "json_web_crypto_common.json#/definitions/JsonWebKeyset",
          "description": "the public keyset in webcrypto format"
        },
        "tests": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/JsonWebKeyTestVector"
          }
        }
      },
      "additionalProperties": false,
      "required": ["source", "tests"]
    },
    "JsonWebKeyTestVector": {
      "type": "object",
      "properties": {
        "tcId": {
          "type": "integer",
          "description": "Identifier of the test case"
        },
        "comment": {
          "type": "string",
          "description": "A brief description of the test case"
        },
        "jws": {
          "type" : "string",
          "description": "The JSON Web Signature in compact form"
        },
        "result": {
          "$ref": "common.json#/definitions/Result"
        },
        "flags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of flags"
        }
      },
      "required": ["tcId", "comment", "jws", "result", "flags"],
      "additionalProperties": false
    }
  },
  "properties": {
    "generatorVersion": {
      "type": "string",
      "description": "DEPRECATED: prefer \"source\" property in test group",
      "deprecated": true
    },
    "header": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "additional documentation"
    },
    "notes": {
      "$ref": "common.json#/definitions/Notes"
    },
    "numberOfTests": {
      "type": "integer",
      "description": "the number of test vectors in this test"
    },
    "schema": {
      "enum": [
        "json_web_key_schema_v1.json"
      ]
    },
    "testGroups": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/JsonWebKeyTestGroup"
      }
    }
  },
  "required": ["header", "notes", "numberOfTests", "schema", "testGroups"],
  "additionalProperties": false
}
