google / google/jsonnet

Allow option to use single-quotes instead of double-quotes to wrap YAML KVs

Open
#682 1 comment 1 reaction 0 assignees View on GitHub
enhancement stdlib
Dominant language
Jsonnet
Stars
7.6k
Forks
475
PR merge metrics
No merged PRs in 30d

Description

```yaml
---
hello: there
'hi': 'there'
"is": "this okay?"
```
^ This passes `yamllint`.

Would it be agreeable to add an arg to `std.manifestYamlDoc()` and similar functions to emit the `'hi': 'there'` style instead of the `"is": "this okay?"`? As in jsonnet source code, single quotes are significantly easier to read at scale in YAML.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.