Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public async Task WriteResponseAsync(HttpContext context)
// Ensure cachedResponse is not null before calling WriteAsync
if (report != null)
{
// Set currentRole per-request (not cached) so each caller sees their own role
// Set current-role per-request (not cached) so each caller sees their own role
await context.Response.WriteAsync(SerializeReport(report with { CurrentRole = _healthCheckHelper.GetCurrentRole(roleHeader, roleToken) }));
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public record ComprehensiveHealthCheckReport
/// <summary>
/// The current role of the user making the request (e.g., "anonymous", "authenticated").
/// </summary>
[JsonPropertyName("currentRole")]
[JsonPropertyName("current-role")]
public string? CurrentRole { get; set; }

/// <summary>
Expand Down