Created
February 23, 2019 03:31
-
-
Save slene/b81c8eb2d70eb4ea49b64a8b291cb208 to your computer and use it in GitHub Desktop.
google/jsonnet bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"0": {"o": {"l": [0, 1], "n": 0}}, "1": {"o": {"l": [0, 1], "n": 1}}, "2": {"o": {"l": [0, 1], "n": 2}}, "3": {"o": {"l": [0, 1], "n": 3}}, "4": {"o": {"l": [0, 1], "n": 4}}, "5": {"o": {"l": [0, 1], "n": 5}}, "6": {"o": {"l": [0, 1], "n": 6}}, "7": {"o": {"l": [0, 1], "n": 7}}, "8": {"o": {"l": [0, 1], "n": 8}}, "9": {"o": {"l": [0, 1], "n": 9}}, "10": {"o": {"l": [0, 1], "n": 10}}, "11": {"o": {"l": [0, 1], "n": 11}}, "12": {"o": {"l": [0, 1], "n": 12}}, "13": {"o": {"l": [0, 1], "n": 13}}, "14": {"o": {"l": [0, 1], "n": 14}}, "15": {"o": {"l": [0, 1], "n": 15}}, "16": {"o": {"l": [0, 1], "n": 16}}, "17": {"o": {"l": [0, 1], "n": 17}}, "18": {"o": {"l": [0, 1], "n": 18}}, "19": {"o": {"l": [0, 1], "n": 19}}, "20": {"o": {"l": [0, 1], "n": 20}}, "21": {"o": {"l": [0, 1], "n": 21}}, "22": {"o": {"l": [0, 1], "n": 22}}, "23": {"o": {"l": [0, 1], "n": 23}}, "24": {"o": {"l": [0, 1], "n": 24}}, "25": {"o": {"l": [0, 1], "n": 25}}, "26": {"o": {"l": [0, 1], "n": 26}}, "27": {"o": {"l": [0, 1], "n": 27}}, "28": {"o": {"l": [0, 1], "n": 28}}, "29": {"o": {"l": [0, 1], "n": 29}}, "30": {"o": {"l": [0, 1], "n": 30}}, "31": {"o": {"l": [0, 1], "n": 31}}, "32": {"o": {"l": [0, 1], "n": 32}}, "33": {"o": {"l": [0, 1], "n": 33}}, "34": {"o": {"l": [0, 1], "n": 34}}, "35": {"o": {"l": [0, 1], "n": 35}}, "36": {"o": {"l": [0, 1], "n": 36}}, "37": {"o": {"l": [0, 1], "n": 37}}, "38": {"o": {"l": [0, 1], "n": 38}}, "39": {"o": {"l": [0, 1], "n": 39}}, "40": {"o": {"l": [0, 1], "n": 40}}, "41": {"o": {"l": [0, 1], "n": 41}}, "42": {"o": {"l": [0, 1], "n": 42}}, "43": {"o": {"l": [0, 1], "n": 43}}, "44": {"o": {"l": [0, 1], "n": 44}}, "45": {"o": {"l": [0, 1], "n": 45}}, "46": {"o": {"l": [0, 1], "n": 46}}, "47": {"o": {"l": [0, 1], "n": 47}}, "48": {"o": {"l": [0, 1], "n": 48}}, "49": {"o": {"l": [0, 1], "n": 49}}, "50": {"o": {"l": [0, 1], "n": 50}}, "51": {"o": {"l": [0, 1], "n": 51}}, "52": {"o": {"l": [0, 1], "n": 52}}, "53": {"o": {"l": [0, 1], "n": 53}}, "54": {"o": {"l": [0, 1], "n": 54}}, "55": {"o": {"l": [0, 1], "n": 55}}, "56": {"o": {"l": [0, 1], "n": 56}}, "57": {"o": {"l": [0, 1], "n": 57}}, "58": {"o": {"l": [0, 1], "n": 58}}, "59": {"o": {"l": [0, 1], "n": 59}}, "60": {"o": {"l": [0, 1], "n": 60}}, "61": {"o": {"l": [0, 1], "n": 61}}, "62": {"o": {"l": [0, 1], "n": 62}}, "63": {"o": {"l": [0, 1], "n": 63}}, "64": {"o": {"l": [0, 1], "n": 64}}, "65": {"o": {"l": [0, 1], "n": 65}}, "66": {"o": {"l": [0, 1], "n": 66}}, "67": {"o": {"l": [0, 1], "n": 67}}, "68": {"o": {"l": [0, 1], "n": 68}}, "69": {"o": {"l": [0, 1], "n": 69}}, "70": {"o": {"l": [0, 1], "n": 70}}, "71": {"o": {"l": [0, 1], "n": 71}}, "72": {"o": {"l": [0, 1], "n": 72}}, "73": {"o": {"l": [0, 1], "n": 73}}, "74": {"o": {"l": [0, 1], "n": 74}}, "75": {"o": {"l": [0, 1], "n": 75}}, "76": {"o": {"l": [0, 1], "n": 76}}, "77": {"o": {"l": [0, 1], "n": 77}}, "78": {"o": {"l": [0, 1], "n": 78}}, "79": {"o": {"l": [0, 1], "n": 79}}, "80": {"o": {"l": [0, 1], "n": 80}}, "81": {"o": {"l": [0, 1], "n": 81}}, "82": {"o": {"l": [0, 1], "n": 82}}, "83": {"o": {"l": [0, 1], "n": 83}}, "84": {"o": {"l": [0, 1], "n": 84}}, "85": {"o": {"l": [0, 1], "n": 85}}, "86": {"o": {"l": [0, 1], "n": 86}}, "87": {"o": {"l": [0, 1], "n": 87}}, "88": {"o": {"l": [0, 1], "n": 88}}, "89": {"o": {"l": [0, 1], "n": 89}}, "90": {"o": {"l": [0, 1], "n": 90}}, "91": {"o": {"l": [0, 1], "n": 91}}, "92": {"o": {"l": [0, 1], "n": 92}}, "93": {"o": {"l": [0, 1], "n": 93}}, "94": {"o": {"l": [0, 1], "n": 94}}, "95": {"o": {"l": [0, 1], "n": 95}}, "96": {"o": {"l": [0, 1], "n": 96}}, "97": {"o": {"l": [0, 1], "n": 97}}, "98": {"o": {"l": [0, 1], "n": 98}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local config = std.parseJson(std.extVar('config')); | |
local objectGet(obj, name, default) = | |
if std.objectHas(obj, name) then | |
obj[name] | |
else default | |
; | |
local value = objectGet(config, 'key', []); | |
{ | |
key: value, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment