PyYAML's dumper strips quotes from string values regardless of how they are passed in.
Consider the following field:
myField: str = pydantic.Field(
examples=["one", "\"two\""],
)
Despite the escaped quotes in the second example, the examples section of this field's kitbash entry would render as:
Examples
I would like Kitbash to be less opinionated about how string values are formatted as YAML, as there are cases where keys should be enclosed in quotes for safety (e.g., version strings).
PyYAML's dumper strips quotes from string values regardless of how they are passed in.
Consider the following field:
Despite the escaped quotes in the second example, the examples section of this field's kitbash entry would render as:
Examples
I would like Kitbash to be less opinionated about how string values are formatted as YAML, as there are cases where keys should be enclosed in quotes for safety (e.g., version strings).