You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Column can have following settings:
29
29
30
30
-```Title``` - human-readable string that describes field in interface.
31
31
-```Field API Key``` - field name from witch data will be taken. For example, if you add a field with key ```name``` than all API consumers should provide JSON with this field: ```{"name": "Some User Name"}```.
32
-
-```Type``` - type of data that will be submitted in this field. ```String```, ```Number``` or ```Boolean```.
32
+
-```Type``` - type of data that will be submitted in this field. ```String```, ```Numeric``` or ```Boolean```.
33
33
34
34
##### Presets
35
35
@@ -39,21 +39,21 @@ It should look something like this:
39
39
40
40
-```Title``` = ```Sufficient Salary```;
41
41
-```Field API Key``` = ```salary```;
42
-
-```Type``` = ```Number```;
42
+
-```Type``` = ```Numeric```;
43
43
-```Preset Condition``` = ```greater than```;
44
44
-```Preset Value``` = ```1000```.
45
45
46
46
By checking checkbox below ```Low Salary``` column in a row, you will make sure that this row won't pass check untill ```salary``` is greater than ```1000```.
47
47
48
48
#### Rows
49
49
50
-
Each row represents a rule in a```OR``` logical operator style.
50
+
Each row represents a rule in an```OR``` logical operator style.
51
51
52
52
Row will return value selected in "Decision" column only if all validation rules in it have passed. Rules are checked in a same order as you see them in a table. You can reorder them by drug'n'drop.
53
53
54
54
#### Cells
55
55
56
-
All cells in a row represent validations in a```AND``` logical operator style.
56
+
All cells in a row represent validations in an```AND``` logical operator style.
57
57
58
58
Sometimes you have a big table and in some rows you prefer to skip some validations. For this case you can select special validation rule called ```is set```. Logically it means that ```{field_name} is set``` and this condition will always pass validation.
59
59
@@ -70,8 +70,9 @@ String fileds support following conditions:
70
70
-```contains``` - validation will pass if field value is contains specified value.
71
71
-```is set``` - validation will always pass. (Use it to skip some columns.)
72
72
73
-
Number supports:
73
+
Numeric supports:
74
74
-```=``` - validation will pass if field value equals specified value.
75
+
-```!=``` - validation will pass if field value does not equal specified value.
75
76
-```>``` - validation will pass if field value is greater than specified value.
76
77
-```>=``` - validation will pass if field value is greater or equal to a specified value.
77
78
-```<``` - validation will pass if field value is less than specified value.
@@ -82,8 +83,8 @@ Number supports:
82
83
-```is set``` - validation will always pass. (Use it to skip some columns.)
83
84
84
85
Boolean supports:
85
-
-```true``` - will pass if field value is ```true```, ```"true"```, ```'true'```, ```1```, ```"1"``` or ```'1'```.
86
-
-```false``` - will pass if field value is ```false```, ```"false"```, ```'false'```, ```0```, ```"0"``` or ```'0'```.
86
+
-```true``` - will pass if field value is ```true```, ```1```, ```"1"``` or ```'1'```.
87
+
-```false``` - will pass if field value is ```false```, ```0```, ```"0"``` or ```'0'```.
87
88
-```is set``` - validation will always pass. (Use it to skip some columns.)
88
89
89
90
#### Decision Making
@@ -109,4 +110,4 @@ TODO.
109
110
110
111
# API Docs
111
112
112
-
You can find a full API docs on [this](http://nebo15.github.io/qbill.docs/gandalf.html#validation-conditions) page.
113
+
You can find a full API docs on [this](http://nebo15.github.io/qbill.docs/gandalf.html) page.
0 commit comments