Closed seirl closed 3 weeks ago
Describe the bug Match blocks with missing outputs are silently ignored.
To Reproduce
Sample expression and input that reproduces the issue:
rule: match: - condition: "!a.hasValue()" - condition: "!a.field.hasValue()" - output: "a.field.value()"
This gets compiled to the following expression:
a.field.value()
Expected behavior
Two possible behaviors would work here:
!a.hasValue() ? optional.none() : !a.field.hasValue() ? optional.none() : a.field.value()
For conditions, they should have either a rule or an output, so this should be an error.
Describe the bug Match blocks with missing outputs are silently ignored.
To Reproduce
Sample expression and input that reproduces the issue:
This gets compiled to the following expression:
Expected behavior
Two possible behaviors would work here: