Skip to content

Conversation

@tuunit
Copy link

@tuunit tuunit commented Dec 29, 2023

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 tuunit changed the title fix yaml default mapping value resolver breaking parsing of simple string lists bugfix: yaml default mapping value resolver breaks parsing of simple string lists Dec 29, 2023
@tuunit tuunit force-pushed the bugfix/yaml-default-mapping-value-resolver-is-breaking-parsing branch from 2bdc9d7 to 06b7b31 Compare December 29, 2023 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant