Skip to content

fix(den): validate TypeIDs and refine OpenAPI docs#1376

Merged
src-opn merged 2 commits intodevfrom
task/cleanup-swagger
Apr 7, 2026
Merged

fix(den): validate TypeIDs and refine OpenAPI docs#1376
src-opn merged 2 commits intodevfrom
task/cleanup-swagger

Conversation

@src-opn
Copy link
Copy Markdown
Collaborator

@src-opn src-opn commented Apr 7, 2026

Summary

  • switch Den TypeID handling to a shared Zod-backed utility and wire those schemas into den-api so request validation and Swagger examples stay in sync
  • retag and trim the OpenAPI surface so only public, user-facing Den routes show up in docs with clearer auth and permission guidance
  • verify the live app flow with pnpm dev:web-local, including API key read/delete and member invitation create/cancel through the web UI

Testing

  • pnpm --filter @openwork-ee/utils build && pnpm --filter @openwork-ee/den-api build
  • pnpm dev:web-local
  • browser-based checks for API key read/delete and member invitation create/cancel flows

src-opn added 2 commits April 6, 2026 16:16
Use the shared TypeID utility in den-api request and response schemas so invalid IDs are rejected consistently and Swagger documents the expected prefixes. Keep the API docs aligned with the live validation rules used by the app.
Hide internal and sensitive Den routes from Swagger so the published docs stay focused on public workflows. Clarify route tags and permission descriptions so ownership and workspace-admin requirements are easier to understand.
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 7, 2026

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

Project Deployment Actions Updated (UTC)
openwork-app Ready Ready Preview, Comment Apr 7, 2026 0:35am
openwork-den Ready Ready Preview, Comment Apr 7, 2026 0:35am
openwork-den-worker-proxy Ready Ready Preview, Comment Apr 7, 2026 0:35am
openwork-landing Ready Ready Preview, Comment, Open in v0 Apr 7, 2026 0:35am
openwork-share Ready Ready Preview, Comment Apr 7, 2026 0:35am

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

The following comment was made by an LLM, it may be inaccurate:

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