-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allow validation blocks in inputs #5063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThis PR fixes Terragrunt's HCL validation to correctly parse Terraform variable blocks containing validation rules. The fix updates tf/tf.go to use a more permissive schema that recognizes validation blocks as valid nested constructs within variables. Test fixtures are added to verify the functionality. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used📓 Path-based instructions (1)**/*.go⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (3)📓 Common learnings📚 Learning: 2025-11-03T04:40:01.000ZApplied to files:
📚 Learning: 2025-02-10T23:20:04.295ZApplied to files:
🧬 Code graph analysis (1)tf/tf.go (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
🔇 Additional comments (4)
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 |
Description
Fixes #5059
In #5041 I inadvertently introduced some incomplete schema validation to variable blocks, resulting in errors when variable blocks contain anything besides attributes.
This switches to doing partial schema validation, allowing any other structure to exist without producing an error.
TODOs
Read the Gruntwork contribution guidelines.
Release Notes (draft)
hcl validateSummary by CodeRabbit
Tests
Bug Fixes