RegOpz / RegOpzAPI

1 stars 3 forks source link

MaintainBusinessRule: Add validation for Rule Condition #51

Closed suchibrata closed 7 years ago

suchibrata commented 7 years ago

Add validation for rule condition in AddBusinessRule form. Validator should take as input following JSON:

{'expr':[python expression to be validated], attr:{ 'attr1': [value],'attr2':[value],...} }

and return the following JSON: {'status': [status whether the expression is valid or not], 'msg:[error message when the expression is invalid] }