Skip to content

v1.2.0

Latest

Choose a tag to compare

@matajoh matajoh released this 08 Jan 15:49
· 1 commit to main since this release
d8f1413

Minor version fixing some bugs.

Bug Fixes

  • When passing a value to sprintf using %v as the format specifier, the
    interpreter would JSON-escape the result in all cases, even if the argument
    already a valid JSON string. This could result in double-escaping strings in
    some contexts, which was an unintended behavior and a discrepancy between with
    the reference implementation. The interpreter will now pass JSON strings
    unchanged to sprintf when used in this way.
  • Two rules in rego_to_bundle were being shadowed. This did not affect the
    functionality of the compiler but had resulted in an incorrect error message
    being generated and in another case a rule which would never be matched.