mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-26 02:04:50 -06:00
50b79b9b00
Fixes #4767 Signed-off-by: Anders Eknert <anders@eknert.com>
18 lines
467 B
YAML
18 lines
467 B
YAML
cases:
|
|
- data: {}
|
|
input_term: '{"x": true}'
|
|
modules:
|
|
- |
|
|
package generated
|
|
|
|
p = __local0__ {
|
|
__local2__ = input.x
|
|
object.remove({"a": 1}, __local2__, __local1__)
|
|
__local0__ = __local1__
|
|
}
|
|
note: objectremove/error invalid key param type boolean input
|
|
query: data.generated.p = x
|
|
want_error: 'object.remove: operand 2 must be one of {object, set, array} but got boolean'
|
|
want_error_code: eval_type_error
|
|
strict_error: true
|