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 1.2 Core Schema support (about yes/no, on/off, 07 vs 08) #486

Open
perlpunk opened this issue Jan 29, 2021 · 2 comments
Open

YAML 1.2 Core Schema support (about yes/no, on/off, 07 vs 08) #486

perlpunk opened this issue Jan 29, 2021 · 2 comments

Comments

@perlpunk
Copy link
Member

perlpunk commented Jan 29, 2021

... or how to get rid of the no(rway) problem

Issue to track necessary changes for supporting the YAML 1.2 Core schema.

Suggested steps

  • Add a test for YAML 1.1 types that can be easily extended for 1.2 testing Add a test for YAML 1.1 types #483
  • Move around methods from SafeLoader to BaseLoader, and add methods to load a whole group of tags, so that users can choose tags in a more modular way
  • Add methods for loading 1.2 Core tags. Since 1.1 and 1.2 share some tags, the previous step will be helpful to save some code
    (The same has to be done for the Dumper/Representer of course)
    Support for the YAML 1.2 Core and JSON schemas [Take 2] #555

Users will then be able to explicitly choose between the classic, default 1.1 SafeLoader and the Core Loader.
Ideally things like merge keys and other tags (that are now on by default and can't be turned off) can be chosen optionally.

Related issues

The following issues/PRs are more or less related to 1.2, and some can simply be fixed when the users have the possibility to choose 1.2 Core instead of 1.1.

@perlpunk
Copy link
Member Author

#512 adds CoreLoader/CoreDumper, JSONLoader/JSONDumper

@perlpunk
Copy link
Member Author

perlpunk commented May 8, 2024

I will leave a comment here as this is the pinned issue for this topic:
YAML 1.2 Support for PyYAML is currently blocked on planned API changes, but you can use the following package on top of PyYAML: https://pypi.org/project/yamlcore/

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

1 participant