gocd-yaml-config-plugin icon indicating copy to clipboard operation
gocd-yaml-config-plugin copied to clipboard

Support full yaml 1.1 syntax

Open reegnz opened this issue 7 years ago • 3 comments
trafficstars

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 avatar Apr 03 '18 11:04 reegnz

This should also fix #55 once implemented.

reegnz avatar Apr 03 '18 11:04 reegnz

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.

ryudice avatar Sep 20 '19 16:09 ryudice

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

kyrofa avatar Aug 04 '21 21:08 kyrofa