title: NestJS class-validators on incoming requests using interface
body: <p>I need to use an interface through class-validator to validate the incoming form for a specific field in the incoming request body.</p>
  <p>The interface:</p>
  <pre class="lang-js prettyprint-override"><code>export enum Fields {
    Full_Stack_Dev = 'full stack dev',
    Frontend_Dev = 'frontend dev',
    Backend_Dev = 'backend dev',
  }
  
  export interface Experience {
    field: Fields;
    years: number;
  }
  </code></pre>
  <p>And here is the <code>DTO</code> Class:</p>
  <pre class="lang-js prettyprint-override"><code>@IsEnum(Languages)
    languages: Languages[];
  
    experience: Experience[]; //  Not sure which decorator to use for interfaces 
  </code></pre>