Skip to content

map parsed as string #550

Closed
Closed
@RedCMD

Description

@RedCMD

Describe the bug
a flow map with an empty value should be parsed as map, not string
Flow nodes and flow keys are not allowed to contain the character set :]

To Reproduce

[a:b]
---
[c:]
---
[:]
---
a:b
---
c:
---
:

Expected behaviour
[c:] should be a map with c key and empty for the value
[a:b] is correctly parsed as a string
[:] is correctly parsed as an empty map

Versions:

  • Environment: VSCode 1.89
  • yaml: 2.4.3

Additional context
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions