Fail on Duplicate Keys #62
Unanswered
john-science
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see you have the allow duplicates functionality. Which is nice. So I could subclass
ruyaml.yaml.YAML
to have a preprocessor fail upon reading any YAML file. But that would mean changing many lines of our code to use the new tool, and remembering to use the new subclass then next time we importruyaml
.It would mean a lot less cruft in my code if this happened inside the
ruyaml
library somehow. Is it possible?If it isn't currently possible, could I make a PR and add a feature? I imagine something like:
Beta Was this translation helpful? Give feedback.
All reactions