feelin icon indicating copy to clipboard operation
feelin copied to clipboard

Error and warnings support additional to result

Open kollerdroid opened this issue 2 months ago • 1 comments

The FEEL Scala (Java FEEL engine) engine supports error and warnings in evaluate results, but feelin (JavaScript FEEL engine) does not.

Is there a plan to support them also in feelin?

Expression:

3 + y

Context:

{
  "x": 5
}

Result (Java engine):

{
    "result": null,
    "error": null,
    "warnings": [
        {
            "type": "NO_VARIABLE_FOUND",
            "message": "No variable found with name 'y'"
        },
        {
            "type": "INVALID_TYPE",
            "message": "Can't add 'null' to '3'"
        }
    ]
}

Result (JavaScript engine)

null

kollerdroid avatar Oct 29 '25 12:10 kollerdroid

I believe this is a duplicate of https://github.com/nikku/feelin/issues/37?

To answer your question: Yes, I'd like to support null(with error) and/or capture diagnostic problems at some point. Contributions welcome 🙂

nikku avatar Oct 29 '25 18:10 nikku