Skip to content

docs: record body-schema 422 parity on a real workerd - #381

Merged
jimhoyd merged 1 commit into
mainfrom
docs/workerd-body-validation-verification
Sep 21, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
docs/workerd-body-validation-verification

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

Refs #320 (does not close it). Ran the Cloudflare build of examples/body-validation on workerd via wrangler dev --local (local only, nothing deployed, no credentials) next to the self-hosted server: 16 requests including JSON/text 422, 400/413/415, uuid, and the 128-char worst-case pattern in body and query. Status, headers (except per-request X-Request-Id and edge gzip) and bodies were identical; no eval/new Function needed.

  • docs/CLOUDFLARE.md: new 'What has run on workerd' section with versions, requests, results and what it does not show.
  • scripts/workerd-parity.ts + npm run test:workerd: repeatable, installs wrangler in a temp dir outside the repo (~200 MB, network), prints SKIP and exits 0 if it cannot; not in verify, no CI change, no new dependency.

npm ci, docs:llms, check:docs and verify pass locally.

🤖 Generated with Claude Code

Adds scripts/workerd-parity.ts (optional, skips when workerd cannot be
installed, not part of verify) and a section in docs/CLOUDFLARE.md.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@jimhoyd
jimhoyd force-pushed the docs/workerd-body-validation-verification branch from eb71ec3 to 0cc59b4 Compare September 21, 2026 14:34
@jimhoyd
jimhoyd merged commit 99ca49c into main Sep 21, 2026
20 checks passed
@jimhoyd
jimhoyd deleted the docs/workerd-body-validation-verification branch September 21, 2026 14:43
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