feat: add proper support for JSON Schemas on workflows#11
Conversation
|
Warning Rate limit exceeded@UlisesGascon has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 22 minutes and 49 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
WalkthroughThe update changes how input data is processed for the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant Workflow
User->>CLI: Execute workflow with -d or -f input
CLI->>CLI: Parse input data as JSON
CLI->>Workflow: Check if workflow requires data
alt Data required but no schema
CLI->>User: Throw API error
else Schema present
CLI->>CLI: Parse schema as JSON
CLI->>CLI: Validate data against schema
CLI->>Workflow: Execute workflow
Workflow-->>CLI: Return result
CLI-->>User: Output result
end
Possibly related PRs
Poem
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/index.ts(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (6)
- GitHub Check: Test on windows-latest with Node 24.x
- GitHub Check: Test on macOS-latest with Node 24.x
- GitHub Check: Test on windows-latest with Node 20.x
- GitHub Check: Test on windows-latest with Node 22.x
- GitHub Check: Analyze (actions)
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (1)
src/index.ts (1)
73-75: Good defensive programming practice.The validation ensures that workflows requiring additional data have a proper schema defined, preventing runtime errors during validation.
025b259 to
724e941
Compare
Related #1 and OpenPathfinder/visionBoard#251
Summary by CodeRabbit
workflow executecommand to ensure proper JSON parsing and validation.