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 option to use YAML v1.2 octal syntax only #996

Open
mx-psi opened this issue Oct 3, 2023 · 0 comments
Open

Add option to use YAML v1.2 octal syntax only #996

mx-psi opened this issue Oct 3, 2023 · 0 comments

Comments

@mx-psi
Copy link

mx-psi commented Oct 3, 2023

As stated on the README compatibility section yaml.v3,

Octals encode and decode as 0777 per YAML 1.1, rather than 0o777 as specified in YAML 1.2, because most parsers still use the old format. Octals in the 0o777 format are supported though, so new files work.

This can be confusing for end users (e.g. see open-telemetry/opentelemetry-collector/issues/8565) so it would be great to have an option to make the parser only support the new octal syntax (or maybe even an option to be strictly YAML 1.2 compliant?)

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

No branches or pull requests

1 participant