diff --git a/src/Support/OperationExtensions/RulesExtractor/RulesMapper.php b/src/Support/OperationExtensions/RulesExtractor/RulesMapper.php index ac799793..acbaa386 100644 --- a/src/Support/OperationExtensions/RulesExtractor/RulesMapper.php +++ b/src/Support/OperationExtensions/RulesExtractor/RulesMapper.php @@ -139,6 +139,13 @@ public function max(Type $type, $params) return $type; } + public function size(Type $type, $params) + { + $type = $this->min($type, $params); + + return $this->max($type, $params); + } + public function in(Type $type, $params) { return $type->enum(