Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤔 [ISSUE] - API Validation Pipe #79

Closed
marrouchi opened this issue Sep 24, 2024 · 4 comments · Fixed by #80
Closed

🤔 [ISSUE] - API Validation Pipe #79

marrouchi opened this issue Sep 24, 2024 · 4 comments · Fixed by #80
Assignees
Labels
security Vulnerabilities, exploits, sensitive data

Comments

@marrouchi
Copy link
Contributor

marrouchi commented Sep 24, 2024

Description

Payloads coming in over the network are plain JavaScript objects. The ValidationPipe can automatically transform payloads to be objects typed according to their DTO classes. To enable auto-transformation, set transform to true.

app.useGlobalPipes(
  new ValidationPipe({
    transform: true,
  }),
);

Reproduction steps

-

Logs

No response

Browsers

No response

OS

No response

@marrouchi marrouchi added the security Vulnerabilities, exploits, sensitive data label Sep 24, 2024
@devamitranjan
Copy link
Contributor

#80
@marrouchi Added the changes

@marrouchi
Copy link
Contributor Author

Thank you @devamitranjan Can you please test all UI features to make sure it didn't break anything ?

@devamitranjan
Copy link
Contributor

Sure @marrouchi will do.

@marrouchi marrouchi linked a pull request Sep 24, 2024 that will close this issue
9 tasks
@devamitranjan
Copy link
Contributor

@marrouchi Looks good to me. It is working as before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security Vulnerabilities, exploits, sensitive data
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants