From ea4bbdfb7aebc24e99e5324e49834b7662e34dbb Mon Sep 17 00:00:00 2001 From: julianleonard123 Date: Mon, 29 Jun 2026 19:58:00 +0200 Subject: [PATCH] Fix nesting of response/metadata in CheckPermission audit log example The response and metadata fields were incorrectly nested inside the request object. Per the Audit proto, request, response, error, and metadata are sibling fields, as shown in the ReadSchema example. Co-Authored-By: Claude Opus 4.8 (1M context) --- app/authzed/concepts/audit-logging/page.mdx | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/authzed/concepts/audit-logging/page.mdx b/app/authzed/concepts/audit-logging/page.mdx index b04af07a..fa51ed45 100644 --- a/app/authzed/concepts/audit-logging/page.mdx +++ b/app/authzed/concepts/audit-logging/page.mdx @@ -43,19 +43,19 @@ Logs contain the full details related to a request including: "objectType": "user", "objectId": "tom" } - }, - "response": { - "@type": "type.googleapis.com/authzed.api.v1.CheckPermissionResponse", - "checkedAt": { - "token": "GgoKCENKcmt4QTA9" - }, - "permissionship": "PERMISSIONSHIP_HAS_PERMISSION" - }, - "metadata": { - "token_hash": "c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2", - "user-agent": "grpc-go/1.58.3", - "x-request-id": "819b4d52db4797491e31d0228f381543" } + }, + "response": { + "@type": "type.googleapis.com/authzed.api.v1.CheckPermissionResponse", + "checkedAt": { + "token": "GgoKCENKcmt4QTA9" + }, + "permissionship": "PERMISSIONSHIP_HAS_PERMISSION" + }, + "metadata": { + "token_hash": "c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2", + "user-agent": "grpc-go/1.58.3", + "x-request-id": "819b4d52db4797491e31d0228f381543" } } }