fix(pi): strip the $schema meta-ref so publish succeeds - #319
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
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 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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
skill-check — worker0 verified, 25 skipped (no docs/).
Four for four. Nicely done. |
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
$schemakeyz.toJSONSchemastamps at the root fails withno schema with key or ref ...draft/2020-12/schema.A
jsonSchema()helper strips the root$schemafrom every request and response format;runtimeJsonSchemadoes 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
$schemathe same way and will need the same strip on their next release.