{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bernstein-run/json-schema/bernstein-run-group-mappings-update-request-schema.json",
  "title": "GroupMappingsUpdateRequest",
  "description": "Body for PUT /auth/group-mappings.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bernstein-run-authentication-api-openapi.yml#/components/schemas/GroupMappingsUpdateRequest",
  "properties": {
    "mappings": {
      "items": {
        "$ref": "#/$defs/GroupMappingEntry"
      },
      "type": "array",
      "title": "Mappings"
    }
  },
  "type": "object",
  "required": [
    "mappings"
  ],
  "$defs": {
    "GroupMappingEntry": {
      "properties": {
        "group": {
          "type": "string",
          "title": "Group"
        },
        "role": {
          "type": "string",
          "title": "Role"
        }
      },
      "type": "object",
      "required": [
        "group",
        "role"
      ],
      "title": "GroupMappingEntry",
      "description": "A single group → role mapping."
    }
  }
}