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 customTags defined in vscode #52

Open
suparngp opened this issue Oct 16, 2020 · 0 comments
Open

Support customTags defined in vscode #52

suparngp opened this issue Oct 16, 2020 · 0 comments
Assignees
Labels
t/bug Something isn't working

Comments

@suparngp
Copy link

suparngp commented Oct 16, 2020

Describe the bug
I have the following section in my vscode to support AWS cloudformation tags and some other custom tags:

"yaml.customTags": [
    "!Equals sequence",
    "!FindInMap sequence",
    "!GetAtt",
    "!GetAZs",
    "!ImportValue",
    "!Join sequence",
    "!Ref",
    "!Select sequence",
    "!Split sequence",
    "!Sub",
    "tag:yaml.org,2002:bool"
  ]

My guess is that the last tag is supposed to be used as !!bool true so that the parsers always parse the value as a bool and not as a string. I had to add it because of a bug in parsing with serverless framework.

However, spectral doesn't seem to understand this and I get the following error

Cannot resolve a node with !<tag:yaml.org,2002:bool> explicit tagspectral(parser)

To Reproduce

  1. Given this OpenAPI document '...'
  2. Change this line to '....'
  3. See error

Expected behavior
Spectral should not complain about this kind of a tag.

Screenshots
Screen Shot 2020-10-15 at 10 00 55 PM

Environment:

  • Extension version: v0.2.4
  • VS Code version: latest
  • Operating System: MacOs Catalina
@suparngp suparngp added the t/bug Something isn't working label Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants