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

Custom tag support #34

Open
beanaroo opened this issue Jan 8, 2023 · 0 comments
Open

Custom tag support #34

beanaroo opened this issue Jan 8, 2023 · 0 comments

Comments

@beanaroo
Copy link

beanaroo commented Jan 8, 2023

Thanks for this utility! It is great for adding a quick and easy YAML lint to a CI pipeline.

It would be awesome to somehow specify permitted custom tags.

For example, GitLab has the !reference tag that results in:

[error] unknown tag !<!reference> (19:34)
 16 |     - job: node:deps
 17 |       optional: false
 18 |   script:
 19 |     - !reference [.build, script]
---------------------------------------^

AWS Cloudformation is another example and has a bunch of them.

I had a look at the sample code for custom types in js-yaml and do not have any bright ideas on how this could easily be implemented in CLI form:

https://github.com/nodeca/js-yaml/blob/0d3ca7a27b03a6c974790a30a89e456007d62976/examples/custom_types.js#L80

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

No branches or pull requests

1 participant