Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Multiple Node Types #36

Open
benmontour-wf opened this issue Dec 6, 2018 · 1 comment
Open

Multiple Node Types #36

benmontour-wf opened this issue Dec 6, 2018 · 1 comment

Comments

@benmontour-wf
Copy link

benmontour-wf commented Dec 6, 2018

I'm curious about adding support for multiple node types to the same tag. See issue opened with redhat-developer/vscode-yaml below.
redhat-developer/vscode-yaml#142

As stated in that ticket, YAML syntax for CloudFormation allows for multiple node types for the same tag.
eg. !GetAtt tag supports both scalar and sequence node types. Thoughts?

@JPinkney
Copy link

I did some quick investigation into this and it looks like the error is being thrown here. I believe the problem is that the typeMap only allows there to have one kind attached to an item in the type map.

One way we could solve this is by including an additionalKinds field inside of a type in the typeMap and check the additionalKinds field at that location. Though I'm not sure if that's a preferred solution or not.

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

No branches or pull requests

2 participants