Skip to content

Add stringKeys parse option#581

Merged
eemeli merged 2 commits into
mainfrom
string-keys
Oct 13, 2024
Merged

Add stringKeys parse option#581
eemeli merged 2 commits into
mainfrom
string-keys

Conversation

@eemeli
Copy link
Copy Markdown
Owner

@eemeli eemeli commented Oct 5, 2024

Fixes #554
Fixes #574

Adds a new stringKeys option for parsing. If it's set, all mapping keys are resolved as strings. All non-scalar keys and keys explicitly tagged with something other than !!str are treated as errors.

This relies on the ComposeContext atKey flag added in #580.

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.

YAML 1.1 Pair, Key is y, get parsed to true (bool) "null" key parses as the empty string

1 participant