camunda / feel-scala

FEEL parser and interpreter written in Scala
https://camunda.github.io/feel-scala/
Apache License 2.0
120 stars 49 forks source link

feat: create new assert function #704

Closed nicpuppa closed 10 months ago

nicpuppa commented 10 months ago

Description

Create new assert(value, condition) function in order to allow users to verify if a variable met a certain condition, and return an error if the condition is not fulfilled. This function should help users to migrate to 8.3 easily if they rely on validation error.

Users can provide also a custom error message by assert(value, condition, cause)

Related issues

closes #675

CLAassistant commented 10 months ago

CLA assistant check
All committers have signed the CLA.

saig0 commented 10 months ago

@nicpuppa it seems that the SLA bot doesn't like your commits. Please check if the email address of the commits match your GitHub account.

nicpuppa commented 10 months ago

Hi @saig0 thanks for the review 🚀

I applied all the suggestions, please have another look 👀 Sorry for the CLA, new pc 😂

nicpuppa commented 10 months ago

Applied all suggestions, please have another look @saig0 👀