{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fusio/main/json-schema/fusio-backend-scope-schema.json",
  "title": "Backend_Scope",
  "description": "This object represents a scope. A scope is assigned to a user and is required to access operations",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fusio-scope-api-openapi.yml#/components/schemas/Backend_Scope",
  "type": "object",
  "properties": {
    "id": {
      "description": "Unique identifier for the object",
      "type": "integer"
    },
    "name": {
      "description": "Unique name of the object",
      "type": "string"
    },
    "description": {
      "description": "Short description of the scope",
      "type": "string"
    },
    "operations": {
      "description": "All operations which can be access through this scope",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Backend_ScopeOperation"
      }
    },
    "metadata": {
      "$ref": "#/$defs/Common_Metadata"
    }
  },
  "$defs": {
    "Backend_ScopeOperation": {
      "type": "object",
      "properties": {
        "operationId": {
          "type": "integer"
        },
        "allow": {
          "type": "boolean"
        }
      }
    },
    "Common_Metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}