Skip to content
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

fix: Correct root path handling #456

Closed
wants to merge 1 commit into from

Conversation

nieomylnieja
Copy link
Contributor

Before submitting your PR, please confirm the following.

  • Describe the purpose for which you created this PR.
    The bare $ root path is not handled correctly, i.e. it returns nil instead of the root node. This PR fixes this inconsistency.
  • Create test code that corresponds to the modification

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.70%. Comparing base (b2a8cc6) to head (06ddb94).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #456      +/-   ##
==========================================
+ Coverage   78.65%   78.70%   +0.05%     
==========================================
  Files          13       13              
  Lines        3983     3983              
==========================================
+ Hits         3133     3135       +2     
+ Misses        590      589       -1     
+ Partials      260      259       -1     

nieomylnieja added a commit to nobl9/go-yaml that referenced this pull request Jul 5, 2024
goccy pushed a commit that referenced this pull request Jul 16, 2024
…es handling (#457)

* fix scan double quote index progression

* fix: Correct root path handling (#2)

Ref: #456
@goccy
Copy link
Owner

goccy commented Jul 16, 2024

Thank you for your contribution ! I've already merged the same commit by #457

@goccy goccy closed this Jul 16, 2024
charithe pushed a commit to cerbos/go-yaml that referenced this pull request Jul 22, 2024
…es handling (goccy#457)

* fix scan double quote index progression

* fix: Correct root path handling (#2)

Ref: goccy#456
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.

3 participants