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

Add stringKeys parse option #581

Merged
merged 2 commits into from
Oct 13, 2024
Merged

Add stringKeys parse option #581

merged 2 commits into from
Oct 13, 2024

Conversation

eemeli
Copy link
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