Skip to content

Include depth info in SelectionSetTooDeep error#44

Merged
scoop1120 merged 1 commit intomainfrom
max-depth-error
Apr 30, 2026
Merged

Include depth info in SelectionSetTooDeep error#44
scoop1120 merged 1 commit intomainfrom
max-depth-error

Conversation

@scoop1120
Copy link
Copy Markdown
Contributor

Change ValidationError::SelectionSetTooDeep from a single Pos variant to a struct containing depth, max_depth, and pos. Update OperationValidator to return the new struct, adjust pattern matches to destructure the new variant, and update validation snapshots and an integration test to expect the more informative error message (includes actual and allowed depths).

Change ValidationError::SelectionSetTooDeep from a single Pos variant to a struct containing depth, max_depth, and pos. Update OperationValidator to return the new struct, adjust pattern matches to destructure the new variant, and update validation snapshots and an integration test to expect the more informative error message (includes actual and allowed depths).
@scoop1120 scoop1120 merged commit ed2ed54 into main Apr 30, 2026
7 checks passed
@scoop1120 scoop1120 deleted the max-depth-error branch April 30, 2026 20:00
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.

1 participant