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

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