Hey, I'm trying to add validation to my webhook controller via a dto. I have done this successfully with all of my other gql resolvers, but for whatever reason the dto is not applying the validation/transformer at all whatsoever. I have tested it for false values and it doesn't do any sort of validation. Any idea why it would work for gql and not for an http request?
#Odd validation error
12 messages · Page 1 of 1 (latest)
What errors are you getting? What's the incoming request? Does it have a body that can properly be deserialized by the appropriate content handler?
No errors at all, it's acting like the DTO isn't even there
I'm using @IsArray() on a string and it throws no error
What's the request look like? How are you binding the pipe?
The request is a webhook which is a fairly large object
And you're not doing import type, right?
No sir
Hmmm. Validation should be working then
It’s just bizarre to me that it works w/ gql and not http