Skip to content

fix(rest): ADR-0046 — /meta/doc list omits content by default#1790

Merged
xuyushun441-sys merged 1 commit into
mainfrom
fix/adr-0046-rest-doc-list-slim
Jun 12, 2026
Merged

fix(rest): ADR-0046 — /meta/doc list omits content by default#1790
xuyushun441-sys merged 1 commit into
mainfrom
fix/adr-0046-rest-doc-list-slim

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #1789. The ADR-0046 hard requirement — doc list responses carry name + label without content — was implemented on the runtime dispatcher's /metadata/:type route, but the console actually reads the REST server's GET /meta/:type route, which still returned full bodies. This applies the same slimming there: default list omits content, ?include=content opts back in, and the single-item GET /meta/doc/:name always returns the full body.

Found during live E2E verification of the console /docs/:name route (objectui #1677).

Test plan

  • @objectstack/rest build + tests green (107 passed)
  • Live verification on the app-todo example: GET /api/v1/meta/doc items carry no content; ?include=content restores it; GET /api/v1/meta/doc/todo_index returns the full body; console doc page renders end to end

🤖 Generated with Claude Code

The runtime dispatcher's /metadata/doc route already slims doc list
responses (#1789), but the console reads the REST server's /meta/:type
route, which still returned full bodies. Apply the same rule here:
list responses carry name + label only, ?include=content opts back in,
and GET /meta/doc/:name always returns the full body.

Found during live verification of the console /docs/:name route — the
list endpoint is the path that must stay content-free because manuals
are the one metadata payload that grows unbounded.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 12, 2026 3:16pm

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation tooling size/s labels Jun 12, 2026
@xuyushun441-sys xuyushun441-sys merged commit b08d08d into main Jun 12, 2026
12 checks passed
@xuyushun441-sys xuyushun441-sys deleted the fix/adr-0046-rest-doc-list-slim branch June 12, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants