ion from this file
=item * when config is a text, validator will think, that it's a pure YAML or JSON and will try to parse it
=item * when config is a hashref, validator just will apply it without
g && !ref $cfg ) {
# File detected!
if ( $cfg !~ /\n/ && $cfg =~ /\.(yaml|yml|json)$/ai ) {
confess "File not found: $cfg" unless -f $cfg;
$param{config}