{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stackit/json-schema/stackit-list-permissions-response-schema.json",
  "title": "ListPermissionsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stackit-permissions-api-openapi.yml#/components/schemas/ListPermissionsResponse",
  "properties": {
    "permissions": {
      "items": {
        "$ref": "#/$defs/Permission"
      },
      "title": "List of permissions",
      "type": "array"
    }
  },
  "required": [
    "permissions"
  ],
  "type": "object",
  "$defs": {
    "Permission": {
      "properties": {
        "description": {
          "maxLength": 255,
          "minLength": 1,
          "title": "A human readable description of the permission",
          "type": "string"
        },
        "name": {
          "maxLength": 255,
          "pattern": "^[a-z](?:[-.]?[a-z]){1,63}$",
          "title": "Permission name",
          "type": "string"
        }
      },
      "required": [
        "name",
        "description"
      ],
      "type": "object"
    }
  }
}