You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an option to set separate formatting/representation for keys and values in the yaml.dump call?
The closest thing to setting the values separately that I have found is this snippet from represent_mapping in the class BaseRepresenter. Since represent_data is called for both key and value, I'm guessing the answer is "no", but thought I'd be thorough.
For context, my requirement is the yaml file must quote every value, irrespective of key or depth as they are all sql code fragments that are being passed into the AutomateDV package for dbt.
Many thanks,
Simon Norton
The text was updated successfully, but these errors were encountered:
Hello:
Is there an option to set separate formatting/representation for keys and values in the
yaml.dump
call?The closest thing to setting the values separately that I have found is this snippet from
represent_mapping
in the class BaseRepresenter. Sincerepresent_data
is called for both key and value, I'm guessing the answer is "no", but thought I'd be thorough.For context, my requirement is the yaml file must quote every value, irrespective of key or depth as they are all sql code fragments that are being passed into the AutomateDV package for dbt.
Many thanks,
Simon Norton
The text was updated successfully, but these errors were encountered: