jsonnet
jsonnet copied to clipboard
Jsonnet - The data templating language
I was confused by this for a minute until I realized it meant .foo and not some magic member. Please correct me if I'm wrong though 😄
Simplest way to reproduce : ```bash $ jsonnet -e "std.parseYaml('version: 1.2.3')" Something went wrong during jsonnet_evaluate_snippet, please report this: [json.exception.parse_error.101] parse error at line 1, column 16: syntax error while...
https://github.com/google/jsonnet/blob/master/core/parser.h#L41 This function is declared and, as far as I see, never, implemented. How do I use it?
Go implementation differs from C++ implementation when overriding the `std` binding and invoking an operator that desugars to a `std` library call. For example with ```jsonnet local std = {};...
Rapid YAML has an extensive CMake based build, which is probably ok but may be awkward to use from our other build systems (e.g., Bazel, which we probably want to...
I found myself implementing this elsewhere and figured it'd be easy to support in stdlib. I ran `make test`, it succeeded for my changes but had unrelated failures, we might...
Sorry for resurrecting an old [thread](https://github.com/google/jsonnet/issues/219). But I came a cross the same issue the other day. I use Jsonnet for Terraform, and the way I create modules using Jsonnet,...
Consider this input: ```jsonnet std.parseYaml("0777") ``` cpp-jsonnet outputs: ``` Something went wrong during jsonnet_evaluate_snippet, please report this: [json.exception.parse_error.101] parse error at line 1, column 5: syntax error while parsing array...
Hello, It looks like the `std.parseYaml` function parses quoted numbers as numbers (instead of string). e.g. ``` bash-5.1$ cat test.jsonnet local yaml = 'id: "91372278466"\nname: staging\n'; std.parseYaml(yaml) bash-5.1$ jsonnet test.jsonnet...
This touches ~everything by reformatting with clang-format on all .cpp and .h files (by running `make reformat`). And then enables the format checks in the GitHub workflow, to detect regressions....