Repository navigation
Register the generated adapters in Serializer as the generator emits them - #6800
Conversation
SDK Size Comparison 📏
|
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughSerializer now registers additional network-model adapters and ExactDateAdapter. MoshiChatParser registers its local ExactDateAdapter and removes explicit network-model adapters. A new test discovers generated sealed types with nested adapters and checks that undeclared string values parse without throwing or returning null. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The change centralizes network adapter registration without disrupting parser date handling, and unknown network enum values remain parseable. No identified user-facing regression remains; the PR appears ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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. I’m a rabbit with a parsing plan, Comment |




Goal
Register the generated adapters in
Serializerthe way the generator emits it, so the generated Moshi parses the vendored models on its own.Part of AND-1637
Implementation
Serializeris now the emitted file, minus the adapters for models the SDK doesn't vendor. It registers the generated enum adapters andExactDateAdapter.MoshiChatParserbuilds onSerializer.moshiand drops its own copies of the same registrations. No behaviour change.Testing
SerializerTestfinds every generated enum in the models package and checks thatSerializer.moshiparses it.🤖 Generated with Claude Code
Summary by CodeRabbit