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
Validation rules use the [Common Expression Language (CEL)](https://github.com/google/cel-spec)
@@ -1306,7 +1313,7 @@ Validation Rules Examples:
1306
1313
| `'Available' in self.stateCounts` | Validate that an entry with the 'Available' key exists in a map |
1307
1314
| `(size(self.list1) == 0) != (size(self.list2) == 0)` | Validate that one of two lists is non-empty, but not both |
1308
1315
| <code>!('MY_KEY' in self.map1) || self['MY_KEY'].matches('^[a-zA-Z]*$')</code> | Validate the value of a map for a specific key, if it is in the map |
1309
-
| `self.envars.filter(e, e.name = 'MY_ENV').all(e, e.value.matches('^[a-zA-Z]*$')` | Validate the 'value' field of a listMap entry where key field 'name' is 'MY_ENV' |
1316
+
| `self.envars.filter(e, e.name == 'MY_ENV').all(e, e.value.matches('^[a-zA-Z]*$')` | Validate the 'value' field of a listMap entry where key field 'name' is 'MY_ENV' |
1310
1317
| `has(self.expired) && self.created + self.ttl < self.expired` | Validate that 'expired' date is after a 'create' date plus a 'ttl' duration |
1311
1318
| `self.health.startsWith('ok')` | Validate a 'health' string field has the prefix 'ok' |
1312
1319
| `self.widgets.exists(w, w.key == 'x' && w.foo < 10)` | Validate that the 'foo' property of a listMap item with a key 'x' is less than 10 |
@@ -1506,6 +1513,7 @@ Accessible property names are escaped according to the following rules when acce
0 commit comments