N.B.: There's a warning at the end of the validation doc that validation happens on every field change but I think it applies more to truly external APIs (like not getting rate limited trying to get a stock price because you typed a sentence and rang up fifty requests in a few seconds =)
Jul 26, 2022, 2:41 AM
Thanks for the reply and I had a try but getting some error, you can see the screenshot.
Jul 26, 2022, 2:53 AM
That's an interesting error; I am not sure what the type is for validation; I'd assume an object, but I thought I'd give it a try myself. Outside the schema at the top of the file I wrote
and it worked as you'd expect. No errors if I was me (I am) but as a test I inverted the check to be !== and got my message as a validation warning. I make no claim that it's performant or a good way to do it, but it functions as a proof of concept.