Hi all, Anyone managed to implement <https://githu...
# suitescript
k
Hi all, Anyone managed to implement https://github.com/sideway/joi in 2.0 suitescript?
b
would probably require suitescript 2.1
s
I have proven ajv works in SS 2.1 - and it supports the fairly standard json-schema (and bleeding edge JTD) rather than the proprietary chaining validation approach joi takes. https://www.npmjs.com/package/ajv
k
Made it work finally. Wish I have asked earlier @stalbert, ajv seems nicer than https://www.npmjs.com/package/swagger-model-validator which I used to validate open api schema.
s
ajv
does seem to be popular