Anyone ever successfully implement <Joi> as a sche...
# suitescript
n
Anyone ever successfully implement Joi as a schema validator in NS? The dependency on DOM elements is proving problematic...
e
Ajv works well.
n
Thanks! That would be my fallback. I do prefer the chained syntax of Joi so was hoping I could get it to work...
s
I've been looking into bringing the Effect library into the mix, which I believe includes schema validation. Anyone else tried that lib?
💡 1
n
Haven't tried Effect, would be interested on your exp if you go down that path. My team did just have early success today with Zod which a similar syntax to Joi. Seems to be a little more lightweight.
s
FWIW, I think I've used AJV in the past with success in NetSuite.