-
Notifications
You must be signed in to change notification settings - Fork 148
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
feat(api): Enable parsing of YAML anchors and aliases #1427
Conversation
resources: | ||
- kind: ec2/security-group@v1 | ||
spec: | ||
<< : *secgrp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nimakaviani Note that this is slightly different than your example because we do additional validation of the delivery config and verify that resource IDs (which derive from the moniker
field) are unique. IMO this is a good-enough compromise, but wanted to give you a heads-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great thanks!
agreed. parsing is independent of the validation. As long as parsing works as expected, plugins can to decide at what level to use anchors and aliases and how to do the validations. so good enough IMO too. thanks again.
e55b4bb
to
7643beb
Compare
7643beb
to
8f543ee
Compare
I'm kind of stumped as to why this doesn't work out of the box given Jackson's YAML module uses SnakeYAML under the hood. Have we raised an issue on that repo? |
This seems relevant: FasterXML/jackson-dataformats-text#98 |
Yup. I referenced that exact same link in #1398 (comment) 🙂 |
Fixes #1398.
Cc: @nimakaviani