title: How to use Bean Validation in a Helidon App?
body: <p>I'm trying to create a simple Rest Resource using Helidon-MP but for some reason it doesn't work when I add the bean validation annotations on my method.</p>
  
  <pre><code>@POST
  public Response generatePlan(@Valid @ValidPlan JsonObject payload) {
     // some logic here
  }
  </code></pre>
  
  <p>Is this the expected behavior? Or Should I add some dependency or configuration?</p>
  
  <p>I tried to find something on the documentation, but I couldn't.</p>
  
  <p>Thanks</p>
  
  <hr>
  
  <p>I ended up doing as @LairdNelson answered and added the following dependencies in my <code>pom.xml</code>:</p>
  
  <pre><code>&lt;dependency&gt;
       &lt;groupId&gt;org.hibernate.validator&lt;/groupId&gt;
       &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
       &lt;version&gt;6.1.5.Final&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
       &lt;groupId&gt;org.hibernate.validator&lt;/groupId&gt;
       &lt;artifactId&gt;hibernate-validator-cdi&lt;/artifactId&gt;
       &lt;version&gt;6.1.5.Final&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
       &lt;groupId&gt;jakarta.el&lt;/groupId&gt;
       &lt;artifactId&gt;jakarta.el-api&lt;/artifactId&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
       &lt;groupId&gt;org.glassfish&lt;/groupId&gt;
       &lt;artifactId&gt;jakarta.el&lt;/artifactId&gt;
  &lt;/dependency&gt;
  </code></pre>