-
-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON formatting #163
Comments
I'm not sure what the issue is here - your listed "Actual" is valid YAML. |
Yes, it's valid YAML according to the standard. We use YAML lint to check outputs and it complaints about the whitespace not existing: http://yamllint.readthedocs.io/en/latest/rules.html#module-yamllint.rules.commas |
Ok, I see. The purpose of the $ gomplate -i '{{ `["foo", "bar"]` | jsonArray | toJSONPretty " " }}'
[
"foo",
"bar"
] Other than that, |
@hairyhenderson Fair enough, although the linter it's neither mine nor particular :) |
Ok, then instead of "your particular linter" read "the linter you're choosing to use, with its particular configuration" 😉 |
The following will not pass YAML lint at the moment:
Expected Result:
Actual Result:
The text was updated successfully, but these errors were encountered: