---
cases:
  - data:
    input_term: '{"x": true}'
    modules:
      - |
        package generated

        p = __local0__ {
          __local2__ = input.x
          object.filter({"a": 1}, __local2__, __local1__)
          __local0__ = __local1__
        }
    note: objectfilter/error invalid key param type boolean input
    query: data.generated.p = x
    want_error: "object.filter: operand 2 must be one of {object, set, array} but got boolean"
    want_error_code: eval_type_error
    strict_error: true
