Fix Anthropic spec compatibility#69
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe OpenAPI document now uses direct component references for selected session and thread properties. Unified generators also detect operation ID wrapper collisions and conditionally select the input content type for generated ChangesSchema and generator updates
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/generators/unified/model_generator.zig`:
- Around line 1003-1004: Prevent generateManualSchema from silently skipping
InputMessageContent when source_schemas is null. Update the source_schemas
handling around generateManualSchema and generateManualAliases so the fallback
remains able to generate InputMessageContent when InputContent is guaranteed
present, preferably by keeping source_schemas available through
generateManualAliases via generate rather than clearing it inside
generateSchemas.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 73378847-7e36-4050-84b6-ae11125d4bc4
⛔ Files ignored due to path filters (10)
generated/anthropic.zigis excluded by!**/generated/**generated/generated_v2.zigis excluded by!**/generated/**generated/generated_v2_yaml.zigis excluded by!**/generated/**generated/generated_v3.zigis excluded by!**/generated/**generated/generated_v31.zigis excluded by!**/generated/**generated/generated_v31_yaml.zigis excluded by!**/generated/**generated/generated_v32.zigis excluded by!**/generated/**generated/generated_v3_yaml.zigis excluded by!**/generated/**generated/lmstudio.zigis excluded by!**/generated/**generated/main.zigis excluded by!**/generated/**
📒 Files selected for processing (3)
openapi/v3.1/anthropic.jsonsrc/generators/unified/api_generator.zigsrc/generators/unified/model_generator.zig
Fixes build errors in generated anthropic.zig by:
Summary by CodeRabbit
Bug Fixes
Refactor