data_magic icon indicating copy to clipboard operation
data_magic copied to clipboard

Allow alias use in yaml files

Open presidentelect opened this issue 2 years ago • 1 comments

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

presidentelect avatar Jan 31 '24 14:01 presidentelect

This is our internal fix to get our yaml files with aliases working. image

presidentelect avatar Jan 31 '24 14:01 presidentelect