---
cases:
  - note: objectfilter/error invalid object param type bool input
    query: data.generated.p = x
    modules:
      - |
        package generated

        p := __local0__ if {
        	__local2__ = input.x
        	object.filter(__local2__, {"a"}, __local1__)
        	__local0__ = __local1__
        }
    input_term: '{"x": false}'
    want_error_code: eval_type_error
    want_error: "object.filter: operand 1 must be object but got boolean"
    strict_error: true
