Add pretty_generated
option for code
fields
#3727
Labels
😎 Cool
Developer Experience (DX)
Good first issue
Good for newcomers
Help wanted
We could use some help with this
Context
Currently, it’s a common pattern to use
format_using
alongsideupdate_using
to render a prettified version of a code field's content while ensuring valid parsing on update. A typical example involves formatting JSON fields like so:This approach, while effective, introduces redundancy and boilerplate code. To streamline this, we propose adding a first-party
pretty_generated
option, allowing developers to enable this behavior with a simple flag:The text was updated successfully, but these errors were encountered: