{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/auth/v1/create-role-request.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Data to create or update a role.\n",
  "properties": {
    "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"
    },
    "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": true
    }
  },
  "required": [
    "scopes",
    "description"
  ],
  "title": "Create Role Request",
  "type": "object"
}