{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gloat/json-schema/gloat-user-roles-and-groups-schema.json",
  "title": "user_roles_and_groups",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gloat-rbac-groups-roles-api-openapi.yml#/components/schemas/user_roles_and_groups",
  "type": "object",
  "properties": {
    "user_id": {
      "type": "string"
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "target_groups": {
            "type": "array",
            "items": {
              "type": "number",
              "description": "id of the target groups"
            }
          }
        }
      }
    }
  }
}