Closed suchibrata closed 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] }
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] }