{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Cache for credentials used with the Rush tool.",
  "description": "For use with the Rush tool, this file acts as a cache for the credentials. See http://rushjs.io for details.",

  "type": "object",

  "required": ["version", "cacheEntries"],
  "properties": {
    "version": {
      "type": "string"
    },

    "cacheEntries": {
      "type": "object",
      "patternProperties": {
        ".+": {
          "type": "object",
          "required": ["expires", "credential"],

          "properties": {
            "expires": {
              "type": "number"
            },
            "credential": {
              "type": "string"
            },
            "credentialMetadata": {
              "type": "object"
            }
          }
        }
      }
    }
  }
}
