Is your feature request related to a problem? Please describe
In the following statemet I expect ctx to yield a context, rather than a list of elements, as a result, due to the types presented number is 1.
{
ctx: context([ { key: "a+", value: 1 } ]),
number: ctx.a+
}
Cf. playground link.
This uses the context sensitive nature of FEEL to test for special names that are only known (and thereby recognized) by the context.
Describe the solution you'd like
context() is constructed from available data; if available keys are sourced, and the result is typed.
Describe alternatives you've considered
None. Right now context() returns the argument type, which is [ { key, value } ]. This is very misleading.
Additional context
None.
Is your feature request related to a problem? Please describe
In the following statemet I expect
ctxto yield acontext, rather than a list of elements, as a result, due to the types presentednumberis1.Cf. playground link.
This uses the context sensitive nature of FEEL to test for special names that are only known (and thereby recognized) by the context.
Describe the solution you'd like
context()is constructed from available data; if available keys are sourced, and the result is typed.Describe alternatives you've considered
None. Right now
context()returns the argument type, which is[ { key, value } ]. This is very misleading.Additional context
None.