#Custom validation has no effect on server

4 messages · Page 1 of 1 (latest)

teal frost
#

I have a field I'm trying to disable validation on the server with validate: () => true, but this appears to only be effect client-side validation, not server-side validation, which is still failing. My understanding is that if I provide a function for the validate field in a Payload field, that should effect both the client and server side of things (#1071412742273105950 message). I've inserted some console.logs and I can verify that my custom validate function is getting run on the client but nothing is happening on the server.

Discord

Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

cedar gull
#

Did you restart your server after making the change?

teal frost
#

Yes I have

#

I have overriding one the fields for a collection with my own plugin, which does set the custom validate function. I couldn't find anything in the Payload docs, but are there any known patterns that would break overriding the validate function on the server but not client? (I can verify my custom function is firing on the client)