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 support for YAML::PP(::LibYAML) #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

perlpunk
Copy link
Contributor

@perlpunk perlpunk commented Feb 29, 2020

It will load only objects with the specified classes.
Note that load_file/dump_file work for filehandles too.

Also enable $LoadBlessed for YAML::XS/Syck/.pm because they were set to false by default.

For demo I added

    # only for testing
 #    $yaml_module = 'YAML::PP';
 #    $yaml_module = 'YAML::PP::LibYAML';

in _yaml_module.

Also enable $LoadBlessed because they were set to false by default
in YAML::XS/Syck/.pm
@perlpunk
Copy link
Contributor Author

Maybe it should be configurable if loading objects should be enabled or not, similar to yaml_load_code.

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.

1 participant