-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Cannot get the merge alias of a map #1942
Comments
Will fix in the next release :) |
mikefarah
added a commit
that referenced
this issue
Feb 9, 2024
Fwiw - when fixed you can get the alias name by:
|
Fixed in 4.41.1 |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussed in #1937
Originally posted by qaisjp February 6, 2024
I have the following YAML:
And would like to compute the following values based on the "parent" of each object
I've tried the following filters, but can't seem to figure it out!
filter attempt 1
the following queries:
produces
filter attempt 2
produces
filter attempt 3
produces
Note that it works fine with anchors
produces
<<: *
is parsed correctlyWhen I just pipe my yaml through with the
.
filter, I getWhich is correct — according to the docs it says:
(also mentioned at #680 (comment))
but why can't I read the merge alias at
.["<<"]
?Any pointers? 🙁 Thanks!
The text was updated successfully, but these errors were encountered: