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

Support full yaml 1.1 syntax #72

Open
reegnz opened this issue Apr 3, 2018 · 3 comments
Open

Support full yaml 1.1 syntax #72

reegnz opened this issue Apr 3, 2018 · 3 comments

Comments

@reegnz
Copy link

reegnz commented Apr 3, 2018

I suggest that the plugin uses a yaml parser that supports the full yaml 1.1 syntax.
The current yamlbeans parser is incomplete and causes confusion when it's not able to parse a valid yaml file, or when it isn't capable handling some yaml tokens (like http://yaml.org/type/merge.html) and it fails silently.
An example use-case:
I use python tooling to validate and query yaml files: yamllint (https://github.com/adrienverge/yamllint) and yq (https://github.com/kislyuk/yq)
Both of those tools are capable of working with valid yaml files that the yamlbeans parser fails to do.

It would make sense to use a yaml parser for Java that actually supports the full extent of the 1.1 syntax to ensure compatibility with other tooling: https://bitbucket.org/asomov/snakeyaml

@reegnz
Copy link
Author

reegnz commented Apr 3, 2018

This should also fix #55 once implemented.

@ryudice
Copy link

ryudice commented Sep 20, 2019

Are there plans to do this? being able to user anchors would save a lot of boilerplate that we have in our pipelines, which also makes them prone to inconsistencies.

@kyrofa
Copy link

kyrofa commented Aug 4, 2021

Agh, I've been fighting this for way too long before finding this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants