Skip to content

path: Ensure Expression root flag is appropriately set and checked #420

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

Merged
merged 2 commits into from
Jul 20, 2022

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Jul 20, 2022

Closes #419

Since the (Expression).Equal() method was not checking this additional flag, it was missing the fact it wasn't handled with Copy(). The (Path).Expression() method should always set that flag to true, since paths are always root path expressions.

@bflad bflad added bug Something isn't working schema Issues and pull requests about the abstraction for specifying schemas. labels Jul 20, 2022
@bflad bflad requested a review from a team as a code owner July 20, 2022 17:03
@bflad bflad added this to the v0.10.1 milestone Jul 20, 2022
Copy link
Contributor

@detro detro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks for the super fast turnaround

@bflad
Copy link
Contributor Author

bflad commented Jul 20, 2022

Thanks for the excellent bug report and analysis!

@bflad bflad merged commit 50b3def into main Jul 20, 2022
@bflad bflad deleted the bflad/expression-rootness branch July 20, 2022 17:39
@bflad bflad modified the milestones: v0.10.1, v0.11.0 Jul 27, 2022
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working schema Issues and pull requests about the abstraction for specifying schemas.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Any call to .AtName(), .AtListIndex(), etc. removes the root flag on root expressions
2 participants