gocd-yaml-config-plugin
gocd-yaml-config-plugin copied to clipboard
Support full yaml 1.1 syntax
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
This should also fix #55 once implemented.
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.
Agh, I've been fighting this for way too long before finding this.