{
  "$id": "https://schemas.fermihdi.io/license_request_response_schema.json",
  "title": "FermiHDI License Request Response Schema",
  "description": "The JSON Schema description for the response to a successful request for a license from FermiHDI",
  "type": "object",
  "properties": {
    "version": {
      "description": "The version of the license request response schema",
      "type": "integer"
    },
    "clientID": {
      "description": "The Client ID for the license being requested",
      "type": "string"
    },
    "licenseID": {
      "description": "The ID of the license being requested",
      "type": "string"
    },
    "licenseFingerprint": {
      "description": "The license HMAC fingerprint given by FermiHDI",
      "type": "string"
    },
    "hd": {
      "description": "Only one product per request",
      "type": "object",
      "properties": {
        "licenseEncrypted": {
          "description": "The Base64 encoded license encrypted using the Public Key included in the CSR, the license follows the license schema in hd_license_schema.json",
          "type": "string"
        },
        "nonce": {
          "description": "The Base64 encoded nonce used in the encryption of the license",
          "type": "string"
        },
        "dmsCRT": {
          "description": "The Base64 encoded PEM formatted signed Certificate for the FermiHDI HD DMS associated with this license",
          "type": "string"
        }
      }
    }
  },
  "required": ["clientID", "licenseID", "licenseFingerprint"]
}