Skip to content

docs: add RBAC badges to docs Swagger UI#390

Merged
joeyorlando merged 7 commits intomainfrom
docs/swagger-rbac-permissions
Mar 18, 2026
Merged

docs: add RBAC badges to docs Swagger UI#390
joeyorlando merged 7 commits intomainfrom
docs/swagger-rbac-permissions

Conversation

@joeyorlando
Copy link
Contributor

Summary

  • add a Swagger UI plugin that renders OpenAPI x-required-permissions as badges in each operation summary
  • keep the docs renderer resilient to Swagger UI immutable/plain-object shapes
  • add a focused test for permission extraction and badge rendering

Testing

  • pnpm test app/docs/components/swagger-rbac.test.tsx
  • pnpm typecheck

This PR renders RBAC metadata when it is present in the generated OpenAPI spec.

@vercel
Copy link

vercel bot commented Mar 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
archestra Ignored Ignored Mar 18, 2026 9:36pm

Request Review

@joeyorlando joeyorlando changed the title Add RBAC badges to docs Swagger UI docs: add RBAC badges to docs Swagger UI Mar 18, 2026
@joeyorlando joeyorlando merged commit 83b0cc1 into main Mar 18, 2026
10 checks passed
@joeyorlando joeyorlando deleted the docs/swagger-rbac-permissions branch March 18, 2026 21:39
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.

1 participant