Skip to content

fix(api-reference): don't show "not documented" for filter-only permissions - #160

Merged
anttiviljami merged 1 commit into
mainfrom
fix/permissions-filter-only-label
Sep 28, 2026
Merged

anttiviljami merged 1 commit into
mainfrom
fix/permissions-filter-only-label

Conversation

@anttiviljami

Copy link
Copy Markdown
Member

Summary

Operations that only declare filter: true grants rendered as "Required permissions: not documented · results filtered by role:view", for example searchRoles. The "not documented" label is meant for a bare []. A filter-only declaration does document the access: no grant is required, and results are filtered by the grant.

Now:

x-epilot-permissions Renders
[{ action: role:view, filter: true }] results filtered by role:view
[{ access: owner }, { action: dashboard:view, filter: true }] resource owner · results filtered by dashboard:view (unchanged)
[] not documented (unchanged)

Test plan

  • eslint + tsc clean on the changed file
  • Rendering checked for filter-only, access + filter, grant + filter, [], anyOf, and invalid input

🤖 Generated with Claude Code

https://claude.ai/code/session_01C2A97XBNr735zXYDgBMs45


Generated by Claude Code

…ssions

An operation that only declares filter: true grants (e.g. searchRoles)
documents its access: no grant is required and results are filtered.
Render it as 'results filtered by `role:view`' instead of
'not documented · results filtered by …'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C2A97XBNr735zXYDgBMs45
@anttiviljami
anttiviljami merged commit 67781fc into main Sep 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants