{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "KeyCredential",
  "type": "object",
  "description": "Contains a key credential (certificate) associated with an application or service principal",
  "properties": {
    "keyId": {
      "type": "string",
      "description": "Unique identifier for the key"
    },
    "displayName": {
      "type": "['string', 'null']",
      "description": "Friendly name for the key"
    },
    "type": {
      "type": "string",
      "description": "Type of key credential"
    },
    "usage": {
      "type": "string",
      "description": "Describes the purpose of the key"
    },
    "key": {
      "type": "string",
      "description": "The certificate's raw data in byte array converted to Base64 string"
    },
    "startDateTime": {
      "type": "string",
      "description": "The date and time at which the credential becomes valid"
    },
    "endDateTime": {
      "type": "string",
      "description": "The date and time at which the credential expires"
    }
  }
}