fix(coerce): support schemas with morphs#593
Conversation
- Correctly process `in` schema for coercion - Add tests for createEnv with morphed schemas - Add tests for coerce utility with morphed schemas
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughThis PR extends the coercion system to support ArkType morphs (pipe transformations) by switching introspection from Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (7)
🧰 Additional context used📓 Path-based instructions (8)packages/arkenv/**/*.ts📄 CodeRabbit inference engine (.cursor/rules/arktype.mdc)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/coding-guidelines.mdc)
Files:
**/*.test.{ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/coding-guidelines.mdc)
Files:
**/*.integration.test.{ts,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
packages/arkenv/src/**/*.ts📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/*.{ts,tsx,json,md}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
openspec/**/spec.md📄 CodeRabbit inference engine (openspec/AGENTS.md)
Files:
openspec/changes/*/proposal.md📄 CodeRabbit inference engine (openspec/AGENTS.md)
Files:
🧠 Learnings (26)📓 Common learnings📚 Learning: 2025-11-24T16:03:45.295ZApplied to files:
📚 Learning: 2025-11-24T16:03:45.295ZApplied to files:
📚 Learning: 2025-12-12T13:20:01.954ZApplied to files:
📚 Learning: 2025-12-12T13:20:01.954ZApplied to files:
📚 Learning: 2025-11-29T22:11:39.931ZApplied to files:
📚 Learning: 2025-11-29T22:11:39.931ZApplied to files:
📚 Learning: 2025-11-29T22:11:39.931ZApplied to files:
📚 Learning: 2025-11-24T16:03:45.295ZApplied to files:
📚 Learning: 2025-11-24T16:03:45.295ZApplied to files:
📚 Learning: 2025-12-12T13:20:01.954ZApplied to files:
📚 Learning: 2025-11-29T22:11:39.931ZApplied to files:
📚 Learning: 2025-11-29T22:11:39.931ZApplied to files:
📚 Learning: 2025-11-29T22:11:39.931ZApplied to files:
📚 Learning: 2025-11-29T22:11:39.931ZApplied to files:
📚 Learning: 2025-12-12T13:20:01.954ZApplied to files:
📚 Learning: 2025-11-24T16:03:45.295ZApplied to files:
📚 Learning: 2025-12-05T20:33:10.676ZApplied to files:
📚 Learning: 2025-11-24T16:04:00.957ZApplied to files:
📚 Learning: 2025-11-24T16:03:45.295ZApplied to files:
📚 Learning: 2025-11-24T16:03:45.295ZApplied to files:
📚 Learning: 2025-11-29T22:11:39.931ZApplied to files:
📚 Learning: 2025-11-24T16:03:45.295ZApplied to files:
📚 Learning: 2025-11-29T22:11:39.931ZApplied to files:
📚 Learning: 2025-11-24T16:04:11.901ZApplied to files:
📚 Learning: 2025-11-24T16:03:45.295ZApplied to files:
🧬 Code graph analysis (2)packages/arkenv/src/coercion.integration.test.ts (2)
packages/arkenv/src/utils/coerce.test.ts (2)
🔇 Additional comments (9)
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 |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
- Updated introspection to `.in.toJsonSchema()` - Justified using standard JSON Schema - Explained `.in` for morph compatibility -
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
inschema for coercionSummary by CodeRabbit
Bug Fixes
Documentation
Tests
✏️ Tip: You can customize this high-level summary in your review settings.