public function addFormatFilter(string $format, callable $callback, bool $validate = false) {
        if (empty($format)) {
            throw new \InvalidArgumentException('The filter format cannot be empty.', 500);
        }

        $filter = "/format/$format";
        $this->filters[$filter][] = [$callback, $validate];

        return $this;
    }