-
-
Notifications
You must be signed in to change notification settings - Fork 126
feat(json-schema): stable SmartCoercionPlugin #1285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis PR promotes the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (14)
🧰 Additional context used🧬 Code graph analysis (1)packages/json-schema/src/coercer.ts (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🔇 Additional comments (14)
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 |
Summary of ChangesHello @unnoq, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request signifies a key milestone in the development of the JSON Schema coercion capabilities. By removing the 'experimental' designation from the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request graduates the SmartCoercionPlugin from its experimental status. The changes primarily involve removing the experimental_ prefix from SmartCoercionPlugin, JsonSchemaCoercer, and their respective options interfaces. This renaming has been consistently applied across all relevant files, including the core logic, tests, documentation, and example playground applications. The changes are straightforward and correctly implemented. I have no further suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR stabilizes the SmartCoercionPlugin by removing the experimental_ prefix from the plugin and its related types, promoting them to stable API status.
- Renamed
experimental_SmartCoercionPlugintoSmartCoercionPluginand related types - Updated all imports across playground applications to use the new stable naming
- Updated test files and documentation to reflect the stable API
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| playgrounds/tanstack-start/src/routes/api/$.ts | Updated import to use stable SmartCoercionPlugin |
| playgrounds/svelte-kit/src/routes/api/[...rest]/+server.ts | Updated import to use stable SmartCoercionPlugin |
| playgrounds/solid-start/src/routes/api/[...rest].ts | Updated import to use stable SmartCoercionPlugin |
| playgrounds/nuxt/server/routes/api/[...].ts | Updated import to use stable SmartCoercionPlugin |
| playgrounds/next/src/app/api/[[...rest]]/route.ts | Updated import to use stable SmartCoercionPlugin |
| playgrounds/nest/src/app.module.ts | Updated import to use stable SmartCoercionPlugin |
| playgrounds/contract-first/src/main.ts | Updated import to use stable SmartCoercionPlugin |
| playgrounds/cloudflare-worker/worker/index.ts | Updated import to use stable SmartCoercionPlugin |
| playgrounds/astro/src/pages/api/[...rest].ts | Updated import to use stable SmartCoercionPlugin |
| packages/json-schema/src/smart-coercion-plugin.ts | Renamed class and interface from experimental to stable names |
| packages/json-schema/src/smart-coercion-plugin.test.ts | Updated test import to use stable SmartCoercionPlugin |
| packages/json-schema/src/coercer.ts | Renamed JsonSchemaCoercer class and options interface to stable names |
| packages/json-schema/src/coercer.test.ts | Updated test import to use stable JsonSchemaCoercer |
| apps/content/docs/openapi/plugins/smart-coercion.md | Updated documentation example to use stable import syntax |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
More templates
@orpc/ai-sdk
@orpc/arktype
@orpc/client
@orpc/contract
@orpc/experimental-durable-iterator
@orpc/hey-api
@orpc/interop
@orpc/json-schema
@orpc/nest
@orpc/openapi
@orpc/openapi-client
@orpc/otel
@orpc/experimental-pino
@orpc/experimental-publisher
@orpc/experimental-publisher-durable-object
@orpc/experimental-ratelimit
@orpc/react
@orpc/react-query
@orpc/experimental-react-swr
@orpc/server
@orpc/shared
@orpc/solid-query
@orpc/standard-server
@orpc/standard-server-aws-lambda
@orpc/standard-server-fastify
@orpc/standard-server-fetch
@orpc/standard-server-node
@orpc/standard-server-peer
@orpc/svelte-query
@orpc/tanstack-query
@orpc/trpc
@orpc/valibot
@orpc/vue-colada
@orpc/vue-query
@orpc/zod
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Deploying orpc with
|
| Latest commit: |
3c52495
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d15c7883.orpc-1qh.pages.dev |
| Branch Preview URL: | https://feat-json-schema-stable-smar.orpc-1qh.pages.dev |
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.