diff --git a/src/generator.ts b/src/generator.ts index 1a88a76d1..5339db6b8 100644 --- a/src/generator.ts +++ b/src/generator.ts @@ -35,13 +35,11 @@ export function generateMiddlewareFromRuleTree)[namespace]; + if (tree?.[type]?.[opName]) { + rule = tree?.[type]?.[opName] || options.fallbackRule; } }