fix: display errors when schema validation fails - #4623
Conversation
8180ab2 to
e968014
Compare
e968014 to
2bf1718
Compare
2bf1718 to
88e00e4
Compare
|
Apparently the code uses a list to handle errors but the tests did not reflect that. Hence I updated the tests also. |
|
@chronicc Please sign the commit, we cannot merge PRs without it now. |
88e00e4 to
2f823e2
Compare
|
@ssbarnea Signed :) |
2f823e2 to
304f31c
Compare
304f31c to
9b75f0b
Compare
9b75f0b to
0f94550
Compare
|
Hi @chronicc , some of the tests are failing please take a look moving this to draft until CI is back to green. |
|
@chronicc any updates on this draft? |
27bacfc to
6a3d301
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe validation failure message now displays each error on a separate line. The related unit test now supplies validation errors as a list. ChangesValidation Error Formatting
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The PR improves schema validation messages without introducing a supported current-head risk. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
6a3d301 to
500f645
Compare
When using the ansible native configuration I get a "Failed to validate" error without further notice about what is wrong.
extensions/molecule/config.yml
extensions/molecule/default/molecule.yml
Shell Output
Environment
After fix
Summary by CodeRabbit
Bug Fixes
Tests