Is it possible to return a list of errors in the beforeValidate hook, instead of setting data to null to mark it as invalid?
I think you can throw an error, and its returned to the admin and api
It looks like it does throw an error but it doesn't seem to mark the field that generated the error
I noticed this. It will be nice if there’s a way to have this
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.