We currently describe rules as follows:
{
"name": NOT_NULL,
"columns": ["status", "market", "src", "dst"],
}
Which doesn't make sense, e.g. in case of sql rules, cause name is "SQL" and then user can't name their rule (only in description).
Lets rename "name" -> "type" as it is type. Lets keep "name" attribute for user input, also keep description, e.g.:
{
"type": SQL,
"name": "Margin is OK"
"description": "we check if margin is bigger than blabla and also",
"sql": "select 1",
}
We currently describe rules as follows:
{ "name": NOT_NULL, "columns": ["status", "market", "src", "dst"], }Which doesn't make sense, e.g. in case of sql rules, cause name is "SQL" and then user can't name their rule (only in description).
Lets rename "name" -> "type" as it is type. Lets keep "name" attribute for user input, also keep description, e.g.: