pyyaml icon indicating copy to clipboard operation
pyyaml copied to clipboard

bugfix: yaml default mapping value resolver breaks parsing of simple string lists

Open tuunit opened this issue 6 months ago • 0 comments

Description of the bug

When trying to parse a simple yaml list like the following:

mylist:
  - =

An error occurs:

could not determine a constructor for the tag 'tag:yaml.org,2002:value'
  in "<unicode string>", line X, column X

Adding quotes fixes the issues:

mylist:
  - '='

Motivation

The list without quotes is valid YAML and it should therefore be possible to parse it.

Further notes

Related to #89, #635

tuunit avatar Dec 29 '23 22:12 tuunit