data_magic
data_magic copied to clipboard
Allow alias use in yaml files
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
This is our internal fix to get our yaml files with aliases working.