or"></a><code><span class="keyword">val</span> string_has_max_length : int <span>&#45;&gt;</span> <span><span>(string, string, <span class="type-var">'err</span>)</span> <a href="index.html#type-validator_builder">validator_builder</a></span></code></dt><dd><p>Validate the max length of a string</p><pre><code class="ml">let validator input =
  let open Validator in
  build build_valid
  |&gt; validate input.password (string_has_max_length 100 &quot;Max 100 chars&quot;)</code></pre></dd></dl><dl><dt class=