Join Slack
Powered by
Hi all, Anyone managed to implement <https://githu...
# suitescript
k
Kyriakos Zisopoulos
04/15/2021, 11:24 AM
Hi all, Anyone managed to implement
https://github.com/sideway/joi
in 2.0 suitescript?
b
battk
04/15/2021, 11:58 AM
would probably require suitescript 2.1
s
stalbert
04/15/2021, 12:45 PM
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
Kyriakos Zisopoulos
04/16/2021, 10:53 AM
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
stalbert
04/16/2021, 1:52 PM
ajv
does seem to be popular
2
Views
Open in Slack
Previous
Next