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
Support YAML for Java and C#.
Support private fields for Java and C#.
Support Map (Dictionary) and Set for the 'length' condition type.
Minify the size of the npm package.
Copy file name to clipboardExpand all lines: Document.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# Table of Contents
2
-
-[JSON Rule List](#json-rule-list)
2
+
-[JSON / YAML Rule List](#json--yaml-rule-list)
3
3
-[Field Expression](#field-expression)
4
4
- [General](#general)
5
5
- [Iterable](#iterable)
@@ -40,7 +40,7 @@
40
40
-[Rule](#rule-2)
41
41
-[Condition](#condition-2)
42
42
43
-
## JSON Rule List
43
+
## JSON / YAML Rule List
44
44
Structure of the rule list:
45
45
46
46
```ts
@@ -224,7 +224,7 @@ A NOT gate can be applied to a condition by adding `!` to the beginning. e.g. `!
224
224
`bytes` checks whether the length of the value in UTF-8 encoding in bytes is within the given range. It only supports string values. The `arg` field is required as the range expression for this condition type. (Please see [Range Expression](#range-expression) for detail.) The condition is passed when the length of the value in UTF-8 encoding in bytes is within the given range.
225
225
226
226
#### Length
227
-
`length` checks whether the length of the value is within the given range. It supports string-like and array-like values. The `arg` field is required as the range expression for this condition type. (Please see [Range Expression](#range-expression) for detail.) The condition is passed when the length of the value is within the given range.
227
+
`length` checks whether the length of the value is within the given range. It supports string-like, array-like, `Map` (`Dictionary`) and `Set` values. The `arg` field is required as the range expression for this condition type. (Please see [Range Expression](#range-expression) for detail.) The condition is passed when the length of the value is within the given range.
228
228
229
229
#### Contains
230
230
`contains` checks whether the value contains the given string or null value. It supports string and iterable values. The `arg` field is required as the given string or null value. For string values, the condition is passed when the value contains the given string. For iterable values, the condition is passed when any of the string representation of the elements equals to the given string or null value. The string representation is obtained by calling `toString()`/`ToString()`.
0 commit comments