{
  "$id": "https://schemas.fermihdi.io/license-request.json",
  "title": "FermiHDI License Request Schema",
  "description": "The JSON Schema description needed to request a license from FermiHDI",
  "type": "object",
  "properties": {
    "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": "License's base64 encoded SHA-512 fingerprint less 'licenses.dms' and 'licenses.licenseVerification'",
      "type": "string"
    },
    "hd": {
      "description": "Request for an HD License (Only one product per request is allowed)",
      "type": "object",
      "properties": {
        "dmsCSR": {
          "description": "The Base64 encoded PEM formatted Certificate Signing Request for the FermiHDI HD DMS associated with this license; Note that the Public Key included in the CSR will be used to encrypt the license.",
          "type": "string"
        }
      }
    }
  },
  "required": ["clientID", "licenseID", "licenseFingerprint"]
}
