Skip to content

Allow alias use in yaml files #36

Description

@presidentelect

current implementations of YAML.load block aliases by default. Issue noticed when upgrading from ruby 3.0 to 3.2 but I believe the issue was introduced in 3.1

Feature request: allow optional parameters for data_magic that will get passed down to yml_reader#load and then to YAML#load
example:
YAML.load('file', aliases: true, permitted_classes: [Time, Symbol])

Our current work around: I placed a copy of yml_reader on our internal github with a hard coded "aliases: true" and require that version in our Gemfile

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions