-
Notifications
You must be signed in to change notification settings - Fork 40
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
Allow reusing anchors in YAML #121
Conversation
d913a43
to
51af969
Compare
YAML Spec permits anchor name reuse, but ruaml.yaml by default errors for them. https://stackoverflow.com/questions/39013993/parse-a-yaml-with-duplicate-anchors-in-python
Thanks for the PR and putting me onto this issue! I'm happy to look into this in a bit -- more on this below. Three quick things:
|
Hi @sirosen, thanks for the feedback. This does indeed require I was hacking around your test suite trying to figure it out but I couldn't get it to run locally and I am not sure how to cleanly add tests. Can you point me in the right direction? Do I just duplicate the test functions I edited and they will be automatically detected? How much of a delay are you proposing to get this into a release? My downstream project is a bit stalled with this issue. |
For reference, this is a workaround in the meantime:
|
That's good to know. Generally I assume things are non-urgent unless someone speaks up. We can release as soon as we get things sorted out.
The CONTRIBUTING doc is meant to be sufficient -- if you can install
The testsuite itself is written in Regarding |
I've made a bunch of changes in Just to share, the primary change I'm making is to use the I'll have this merged soon, and can release in v0.17.0 (hopefully today). |
v0.17.0 is now released. Please let me know if you see any issues with it! |
YAML Spec permits anchor name reuse, but ruaml.yaml by default errors for them.
https://stackoverflow.com/questions/39013993/parse-a-yaml-with-duplicate-anchors-in-python
Stacktrace