Nest: ValidationPipe Not working

Created on 10 Dec 2018  Â·  7Comments  Â·  Source: nestjs/nest

On Sun, Dec 9, 2018, 9:16 AM Kamil Mysliwiec <[email protected]
wrote:

Closed #1358 https://github.com/nestjs/nest/issues/1358.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nestjs/nest/issues/1358#event-2014408186, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AOjIfhCszMBsp0j3F43a9Z3wAJ1jnJ3Cks5u3RsogaJpZM4ZKHjo
.

_Originally posted by @RTK99 in https://github.com/nestjs/nest/issues/1358#issuecomment-445542030_

Reopening this as I am using the ValidationFilter correctly, expecting the result according to the docs, and I am not receiving it. Please look into this.

question 🙌

All 7 comments

Please, share your repository so we can check what's wrong in there (reproduce your issue).

Can't share this as it's a private project. Is there anything specific I
can show that would help?

On Mon, Dec 10, 2018, 2:34 AM Kamil Mysliwiec <[email protected]
wrote:

Validtionpipe is definitely working fine. Please, share your repository so
we can check what's wrong in there.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nestjs/nest/issues/1359#issuecomment-445715922, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AOjIfgNZ2zeGS3VAc3JXHg1DC-sLinowks5u3g6IgaJpZM4ZKaHJ
.

We need a repository that at least reproduces your issue to somehow help you.

@RTK99 did you forget to add the ValidationPipe to your global pipes?

```javascript
import { ValidationPipe } from '@nestjs/common';

async function bootstrap() {
const app = await NestFactory.create(ApplicationModule);
app.useGlobalPipes(new ValidationPipe());
await app.listen(3000);
}
bootstrap();
````

https://docs.nestjs.com/techniques/validation

I think you mentioned that here https://github.com/shekohex/nest-router/issues/40#issue-389723699
but as i reported, it works with/without the nest-router
you should share a simple repository to reproduces that issue.

Hi Kamil,
Sorry about the delay. After trying literally everything, I was able to fix
the issue by reinstalling my operating system. I have no idea why the heck
that fixed it.

On Fri, Dec 14, 2018 at 6:29 PM Kamil Mysliwiec notifications@github.com
wrote:

Closed #1359 https://github.com/nestjs/nest/issues/1359.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nestjs/nest/issues/1359#event-2028137850, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AOjIfnKAJg-oQqInIUA6NGLoP8fQKbzBks5u5DRKgaJpZM4ZKaHJ
.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

szkumorowski picture szkumorowski  Â·  62Comments

BrunnerLivio picture BrunnerLivio  Â·  44Comments

j picture j  Â·  32Comments

chaostheory picture chaostheory  Â·  34Comments

fmeynard picture fmeynard  Â·  45Comments