jsonnet
jsonnet copied to clipboard
Jsonnet - The data templating language
OSS-Fuzz has found a bug in this project. Please see https://oss-fuzz.com/testcase?key=6323798310256640 for details and reproducers. This issue is mirrored from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=419059440 and will auto-close if the status changes there. If...
1. In this pull request it is quick implementation for MSVC 2. This quick fix is not intended for merge in to main branch 3. Intention is to show how,...
The C++ jsonnet implementation is orders of magnitude slower than the golang implementation. I hit the issue using std.sort() but the issue may very well be broader than that. Both...
Motivation: Avoid some recomutaion.
Implement std.isNull in standard library go-jsonnet PR: google/go-jsonnet#806
So while this was discussed in #113 back in 2016, I wonder if we should revisit this discussion given the recent changes to array slices in #1093. With array slicing...
``` hepin@Mac test_suite % ls|wc 336 336 11360 hepin@Mac test_suite % ls|wc -l 336 hepin@Mac test_suite % cd /Users/hepin/GolandProjects/go-jsonnet/testdata hepin@Mac testdata % ls | wc -l 2100 hepin@Mac testdata %...
Method: "objectReplaceKey", "obj", "key", "newKey" which can replace an object's `key` to `newKey` if `key` exists
Motivation: when `?.` is means we can call `select` on a `nullable` value, but it still throws `Field does not exists` exception. What about using a `obj.b?` or `obj['b'?] syntax...
refs: https://github.com/google/jsonnet/issues/930 better to have it as ``` maybeNullObj?['someField'] ?? 'defaultValue' ``` https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing refs in sjsonnet: https://github.com/databricks/sjsonnet/issues/328