feat(platform): nested workflow schemas and arg normalization#827
Conversation
…ed args in workflow tools Build proper Zod schemas for nested object/array properties instead of falling back to z.string(), and auto-parse stringified objects/arrays from models that serialize despite receiving structured schemas.
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe implementation introduces schema-aware argument normalization for workflow tools. The changes replace a basic Zod type mapping with helper functions that construct schema types for nested objects and arrays based on explicit properties. A new Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment Tip CodeRabbit can use TruffleHog to scan for secrets in your code with verification capabilities.Add a TruffleHog config file (e.g. trufflehog-config.yml, trufflehog.yml) to your project to customize detectors and scanning behavior. The tool runs only when a config file is present. |
Summary
z.string(), enabling structured validation for complex inputs like file objects.Test plan
Summary by CodeRabbit