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

YAML Spec Versioning #14852

Open
Blacksmoke16 opened this issue Jul 31, 2024 · 2 comments
Open

YAML Spec Versioning #14852

Blacksmoke16 opened this issue Jul 31, 2024 · 2 comments

Comments

@Blacksmoke16
Copy link
Member

Discussion

The YAML is currently all based on YAML 1.1 spec, which debuted in 2005. However, it seems as of 2009, the YAML 1.2 spec was finalized, and most recently in 2021, https://yaml.org/spec/1.2.2/ is now the latest version.

I'd like to start a discussion on what should be done about this. I.e. should we update to support 1.2? Should we also support 1.1 still? Should we do what Go did and do something in-between?

It seems that YAML 1.2 has some of its own problems: https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell. But 1.1 also has its own as well: Blacksmoke16/oq#129 and #13821.

Out of all of this, adding support for https://yaml.org/spec/1.2.2/#102-json-schema could be quite handy as well, esp for oq.

@HertzDevil
Copy link
Contributor

IIRC LibYAML only supports 1.1, for 1.2 you need something like https://github.com/pantoniou/libfyaml

@Blacksmoke16
Copy link
Member Author

Found https://github.com/yaml/libyaml/wiki/YAML-1.2, seems like there is some support but not 100%. Was suggested to use that lib if 100% 1.2 support is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants