microsoft / rego-cpp

A C++ interpreter for the OPA policy language Rego
https://microsoft.github.io/rego-cpp/
MIT License
33 stars 10 forks source link

rule with value dependent on input silently disappears #159

Closed anakrish closed 2 months ago

anakrish commented 5 months ago

The following

package test

default x := 10
x := data.x

default y := 10
y := input.y

evaluates to

rego 0.4.1 (main:b9278ad, Mon, 24 Jun 2024 18:19:43 +0100)[Clang 14.0.0] on linux
{"expressions":[{"test":{"x":10}}]}

Rule y disappears from output.