feelin
feelin copied to clipboard
Error and warnings support additional to result
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
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 🙂