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

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

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.

None yet

1 participant