mirror of
https://github.com/google/go-jsonnet.git
synced 2025-09-28 17:01:02 +02:00
feat: add support to the jsonnet linter for std.manifestJsonMinified
This commit is contained in:
parent
b42132a7a3
commit
a5ddc1c5a4
@ -110,6 +110,7 @@ func prepareStdlib(g *typeGraph) {
|
|||||||
"manifestPythonVars": g.newSimpleFuncType(stringType, "conf"),
|
"manifestPythonVars": g.newSimpleFuncType(stringType, "conf"),
|
||||||
"manifestTomlEx": g.newSimpleFuncType(stringType, "value", "indent"),
|
"manifestTomlEx": g.newSimpleFuncType(stringType, "value", "indent"),
|
||||||
"manifestJsonEx": g.newSimpleFuncType(stringType, "value", "indent"),
|
"manifestJsonEx": g.newSimpleFuncType(stringType, "value", "indent"),
|
||||||
|
"manifestJsonMinified": g.newSimpleFuncType(stringType, "value"),
|
||||||
"manifestYamlDoc": g.newSimpleFuncType(stringType, "value"),
|
"manifestYamlDoc": g.newSimpleFuncType(stringType, "value"),
|
||||||
"manifestYamlStream": g.newSimpleFuncType(stringType, "value"),
|
"manifestYamlStream": g.newSimpleFuncType(stringType, "value"),
|
||||||
"manifestXmlJsonml": g.newSimpleFuncType(stringType, "value"),
|
"manifestXmlJsonml": g.newSimpleFuncType(stringType, "value"),
|
||||||
|
1
testdata/stdlib_smoke_test.golden
vendored
1
testdata/stdlib_smoke_test.golden
vendored
@ -106,6 +106,7 @@
|
|||||||
],
|
],
|
||||||
"manifestIni": "a = 1\nb = 2\n[s1]\nx = 1\ny = 2\n",
|
"manifestIni": "a = 1\nb = 2\n[s1]\nx = 1\ny = 2\n",
|
||||||
"manifestJsonEx": "{\n \"a\": {\n \"b\": \"c\"\n }\n}",
|
"manifestJsonEx": "{\n \"a\": {\n \"b\": \"c\"\n }\n}",
|
||||||
|
"manifestJsonMinified": "{\"a\":{\"b\":\"c\"}}",
|
||||||
"manifestPython": "{\"a\": {\"b\": \"c\"}}",
|
"manifestPython": "{\"a\": {\"b\": \"c\"}}",
|
||||||
"manifestPythonVars": "a = {\"b\": \"c\"}\n",
|
"manifestPythonVars": "a = {\"b\": \"c\"}\n",
|
||||||
"manifestTomlEx": "\n\n[a]\n b = \"c\"",
|
"manifestTomlEx": "\n\n[a]\n b = \"c\"",
|
||||||
|
1
testdata/stdlib_smoke_test.jsonnet
vendored
1
testdata/stdlib_smoke_test.jsonnet
vendored
@ -95,6 +95,7 @@
|
|||||||
manifestPythonVars: std.manifestPythonVars(conf={a: {b: "c"}}),
|
manifestPythonVars: std.manifestPythonVars(conf={a: {b: "c"}}),
|
||||||
manifestTomlEx: std.manifestTomlEx(value={a: {b: "c"}}, indent=" "),
|
manifestTomlEx: std.manifestTomlEx(value={a: {b: "c"}}, indent=" "),
|
||||||
manifestJsonEx: std.manifestJsonEx(value={a: {b: "c"}}, indent=" "),
|
manifestJsonEx: std.manifestJsonEx(value={a: {b: "c"}}, indent=" "),
|
||||||
|
manifestJsonMinified: std.manifestJsonMinified(value={a: {b: "c"}}),
|
||||||
manifestYamlDoc: std.manifestYamlDoc(value={a: {b: "c"}}),
|
manifestYamlDoc: std.manifestYamlDoc(value={a: {b: "c"}}),
|
||||||
manifestYamlStream: std.manifestYamlStream(value=[42, {a: {b: "c"}}]),
|
manifestYamlStream: std.manifestYamlStream(value=[42, {a: {b: "c"}}]),
|
||||||
manifestXmlJsonml: std.manifestXmlJsonml(value=["blah", {a: 42}]),
|
manifestXmlJsonml: std.manifestXmlJsonml(value=["blah", {a: 42}]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user