{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/auth/v1/get-role-response.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Get all details about a role\n",
  "properties": {
    "created": {
      "description": "Date and time when this role was created\n",
      "format": "date-time",
      "type": "string"
    },
    "description": {
      "description": "Description of what this role is used for in markdown.\nShould include who is the owner, point of contact.\n",
      "maxLength": 10240,
      "type": "string"
    },
    "expandedScopes": {
      "description": "List of scopes granted anyone who assumes this role, including anything\ngranted by roles that can be assumed when you have this role.\nHence, this includes any scopes in-directly granted as well.\n",
      "items": {
        "description": "A single scope. A scope must be composed of\nprintable ASCII characters and spaces.  Scopes ending in more than\none `*` character are forbidden.\n",
        "pattern": "^[ -~]*$",
        "title": "Scope",
        "type": "string"
      },
      "type": "array",
      "uniqueItems": true
    },
    "lastModified": {
      "description": "Date and time of last modification\n",
      "format": "date-time",
      "type": "string"
    },
    "roleId": {
      "description": "roleId of the role requested\n",
      "pattern": "^[\\x20-\\x7e]+$",
      "type": "string"
    },
    "scopes": {
      "description": "List of scopes the role grants access to.  Scopes must be composed of\nprintable ASCII characters and spaces.\n",
      "items": {
        "description": "A single scope. A scope must be composed of\nprintable ASCII characters and spaces.  Scopes ending in more than\none `*` character are forbidden.\n",
        "pattern": "^[ -~]*$",
        "title": "Scope",
        "type": "string"
      },
      "type": "array",
      "uniqueItems": false
    }
  },
  "required": [
    "roleId",
    "scopes",
    "description",
    "created",
    "lastModified",
    "expandedScopes"
  ],
  "title": "Get Role Response",
  "type": "object"
}