-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
map
parsed as string
#550
Comments
Agreed, there's something wrong in the
To be picky, it's a sequence with a map as a value, and that map has a single pair with empty key and value. But it is indeed correctly parsed. |
Describe the bug
a flow map with an empty value should be parsed as
map
, notstring
Flow nodes and flow keys are not allowed to contain the character set
:]
To Reproduce
Expected behaviour
[c:]
should be amap
withc
key andempty
for the value[a:b]
is correctly parsed as a string[:]
is correctly parsed as an empty mapVersions:
1.89
yaml
:2.4.3
Additional context
![image](https://private-user-images.githubusercontent.com/33529441/336634145-bff3fd32-2b5c-4763-9685-0ee92125a330.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0MzA4MTksIm5iZiI6MTcyNDQzMDUxOSwicGF0aCI6Ii8zMzUyOTQ0MS8zMzY2MzQxNDUtYmZmM2ZkMzItMmI1Yy00NzYzLTk2ODUtMGVlOTIxMjVhMzMwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDE2MjgzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFjNDMzNjc1YTkyNTA0NGU2ZjA5NjdlMmM4NzkwYWVhYmY4NWUxNTFiNjFjZDcwN2JmZTc4MmRiNmYyOGY1Y2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.em3RgfjyO-FiyJZpYiN5QRttEi0nE_HMflMhdD2epzo)
The text was updated successfully, but these errors were encountered: