Skip to content

[WIP] Refactor validation engine infrastructure for Laravel compatibility#1398

Closed
devhaozi with Copilot wants to merge 2 commits into
haozi/validation-corefrom
copilot/sub-pr-1397
Closed

[WIP] Refactor validation engine infrastructure for Laravel compatibility#1398
devhaozi with Copilot wants to merge 2 commits into
haozi/validation-corefrom
copilot/sub-pr-1397

Conversation

Copilot AI commented Mar 7, 2026

Copy link
Copy Markdown
Contributor
  • Analyze all 7 unresolved CodeRabbit review threads
  • Thread 1: Fix error handling in NewDataBagFromRequest - return parse errors instead of swallowing them
  • Thread 2: Fix structToMap to recursively normalize nested structs/slices/maps
  • Thread 3: Fix expandWildcardRules to merge rules instead of overwriting, drop unmatched wildcards
  • Thread 4: Move exclude rules to pre-pass in validateField
  • Thread 5: Unknown rules now return internal error, not validation failure
  • Thread 10: Use reflect in isValueEmpty for typed slices/maps
  • Thread 11: Add runtime value kind fallback in getAttributeType
  • Thread 13: Fix shallow overlay in Bind() with DataBag.Set for proper nested path handling
  • Run tests and validate all changes
  • Code review and security scan

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

- Thread 1: Return parse errors from NewDataBagFromRequest instead of swallowing them
- Thread 2: Recursively normalize nested structs/slices/maps in structToMap
- Thread 3: Merge wildcard-expanded rules instead of overwriting, drop unmatched wildcards
- Thread 4: Run exclude rules in pre-pass before validation rules
- Thread 5: Return internal error for unknown rules instead of treating as validation failure
- Thread 10: Use reflect for typed slice/map emptiness check in isValueEmpty
- Thread 11: Add runtime value kind fallback for numeric type detection
- Thread 13: Use DataBag.Set for proper nested path handling in Bind

Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com>
Copilot stopped work on behalf of devhaozi due to an error March 7, 2026 15:11
@devhaozi devhaozi closed this Mar 7, 2026
@h2zi
h2zi deleted the copilot/sub-pr-1397 branch March 17, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants