> For the complete documentation index, see [llms.txt](https://kinesis-school-of-programming.gitbook.io/nestjs-unleashed/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinesis-school-of-programming.gitbook.io/nestjs-unleashed/core-module-backend-development-with-nestjs/validation/options-dedicated-file.md).

# Options dedicated file

Let's just have a bit more of organization with our options object.

If we want, we can also encapsulate the <mark style="color:blue;">`ValidationPipe`</mark> options in a dedicated file. So, let's create the file <mark style="color:purple;">common</mark>/<mark style="color:purple;">util</mark>/<mark style="color:purple;">common.constants</mark> and relocate the options here.

```typescript
export const VALIDATION_PIPE_OPTIONS: ValidationPipeOptions = {
  whitelist: true,
  forbidNonWhitelisted: true,
  transform: true,
  transformOptions: {
    enableImplicitConversion: true,
  },
};
```

And finally, pass them to the <mark style="color:blue;">`ValidationPipe`</mark> instantiation.

```typescript
new ValidationPipe(VALIDATION_PIPE_OPTIONS)
```

<mark style="color:green;">**Commit**</mark> - Encapsulating options in dedicated file
