Skip to content

Commit 3bffe06

Browse files
authored
Merge pull request #110980 from DCtheGeek/dmc-policy-comparisontypes
Clarifying types on conditions
2 parents b69c10f + 4a80490 commit 3bffe06

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

articles/governance/policy/concepts/definition-structure.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,12 +314,16 @@ supported conditions are:
314314
- `"notIn": ["stringValue1","stringValue2"]`
315315
- `"containsKey": "keyName"`
316316
- `"notContainsKey": "keyName"`
317-
- `"less": "value"`
318-
- `"lessOrEquals": "value"`
319-
- `"greater": "value"`
320-
- `"greaterOrEquals": "value"`
317+
- `"less": "dateValue"` | `"less": "stringValue"` | `"less": intValue`
318+
- `"lessOrEquals": "dateValue"` | `"lessOrEquals": "stringValue"` | `"lessOrEquals": intValue`
319+
- `"greater": "dateValue"` | `"greater": "stringValue"` | `"greater": intValue`
320+
- `"greaterOrEquals": "dateValue"` | `"greaterOrEquals": "stringValue"` | `"greaterOrEquals": intValue`
321321
- `"exists": "bool"`
322322

323+
For **less**, **lessOrEquals**, **greater**, and **greaterOrEquals**, if the property type doesn't
324+
match the condition type, an error is thrown. String comparisons are made using
325+
`InvariantCultureIgnoreCase`.
326+
323327
When using the **like** and **notLike** conditions, you provide a wildcard `*` in the value.
324328
The value shouldn't have more than one wildcard `*`.
325329

0 commit comments

Comments
 (0)