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
I have searched the existing issues, and I could not find an existing issue for this feature
I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion
Describe the feature
Add indent parameter to tojson and toyaml. These are straight mappings to the equivalent indent parameters in the respective json.dumps and yaml.safe_dump methods. Adding the indent parameter helps with debugging when developing with objects in Jinja.
Describe alternatives you've considered
No response
Who will this benefit?
This will help dbt macro developers to debug their processes.
Are you interested in contributing this feature?
Yes
Anything else?
This specifically came about because I wanted to make use of the sort_keys parameter, which is available in the tojson context method, but not the tojson Jinja filter:
Is this your first time submitting a feature request?
Describe the feature
Add
indent
parameter totojson
andtoyaml
. These are straight mappings to the equivalent indent parameters in the respectivejson.dumps
andyaml.safe_dump
methods. Adding the indent parameter helps with debugging when developing with objects in Jinja.Describe alternatives you've considered
No response
Who will this benefit?
This will help dbt macro developers to debug their processes.
Are you interested in contributing this feature?
Yes
Anything else?
This specifically came about because I wanted to make use of the
sort_keys
parameter, which is available in the tojson context method, but not the tojson Jinja filter:Currently the last statement errors with:
The text was updated successfully, but these errors were encountered: