We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Booleans returned in native_callback are wrtitten as 1 and 0 instead of the expected true and false values
def native_bool(b): return b json_str = _jsonnet.evaluate_file( sys.argv[1], native_callbacks={"nativeBool": (("bool",), native_bool)}, )
local nativeBool(b) = std.native("nativeBool")(b); { "true": nativeBool(true), "false": nativeBool(false), }
python jsonnet_extensions.py testbool.jsonnet { "false": 0, "true": 1 }
The text was updated successfully, but these errors were encountered:
it is blocker for me. I m using native extensions to load yaml and json string. How can I help? any workaround I could use ?
Sorry, something went wrong.
13fa61e
Merge pull request #215 from sparkprime/fix_native_bool
7504963
Fix #214 bool returned as number, add test
Thanks for the report, it was an easy fix :)
No branches or pull requests
Booleans returned in native_callback are wrtitten as 1 and 0 instead of the expected true and false values
jsonnet_extensions.py:
testbool.jsonnet:
result:
The text was updated successfully, but these errors were encountered: