Skip to content

fix(pi): strip the $schema meta-ref so publish succeeds - #319

Merged
rohitg00 merged 1 commit into
mainfrom
fix/pi-strip-schema
Jun 23, 2026
Merged

fix(pi): strip the $schema meta-ref so publish succeeds#319
rohitg00 merged 1 commit into
mainfrom
fix/pi-strip-schema

Conversation

@rohitg00

Copy link
Copy Markdown
Contributor

Builds on the typed response schemas from #317. pi still cannot publish: the registry validator has no draft-2020-12 meta-schema registered, so the $schema key z.toJSONSchema stamps at the root fails with no schema with key or ref ...draft/2020-12/schema.

A jsonSchema() helper strips the root $schema from every request and response format; runtimeJsonSchema does the same. Schemas stay typed (still pass the worker-interface gate) and now publish.

Two files. typecheck clean, lint clean, 69 tests pass.

Note: claude-code and codex emit $schema the same way and will need the same strip on their next release.

The registry publish validator has no draft-2020-12 meta-schema, so the
$schema key z.toJSONSchema stamps at the root fails publish with 'no
schema with key or ref ...draft/2020-12/schema'. Add a jsonSchema()
helper that strips the root $schema from every request and response
format, and do the same in runtimeJsonSchema. Builds on the typed schemas
from #317; 69 tests pass.
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
workers Ready Ready Preview, Comment Jun 23, 2026 3:56pm

Request Review

@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@rohitg00, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 35 minutes and 11 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses rolling per-developer review limits. Reviews become available again as older review attempts age out of the rolling limit window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 88212d71-3785-4d86-9605-826b28a1b740

📥 Commits

Reviewing files that changed from the base of the PR and between c6a7351 and 9f06305.

📒 Files selected for processing (2)
  • pi/src/config.ts
  • pi/src/run.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/pi-strip-schema

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

skill-check — worker

0 verified, 25 skipped (no docs/).

Layer Result
structure
vale
ai
render

Four for four. Nicely done.

@rohitg00
rohitg00 merged commit a2283cf into main Jun 23, 2026
12 checks passed
@rohitg00
rohitg00 deleted the fix/pi-strip-schema branch June 23, 2026 15:58
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