Merge pull request #34225 from backstage/fix/filter-predicate-mixed-operator-keys
fix(filter-predicates): reject operator keys mixed with other keys
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/filter-predicates': patch
|
||||
---
|
||||
|
||||
Filter predicates that mix operator keys (`$all`, `$any`, `$not`) with other keys are now rejected. Previously, a predicate like `{ kind: 'API', $not: { 'spec.type': 'dataset' } }` would silently drop the `kind` check. The correct form wraps conditions in `$all`.
|
||||
Reference in New Issue
Block a user