plastikfan / zenobia-ts

The regular expression based file management library
MIT License
0 stars 0 forks source link

use 'yup' to apply json schemas to json data. #30

Open plastikfan opened 4 years ago

plastikfan commented 4 years ago

Whilst using yup won't make JSON blobs typesafe, it will provide an extra level of validation to ensure that the data that's being dealt with always conforms to pre-defined schemas. This would be quite a big change (also applicable to jaxom-ts).

This should work with the feature of caching jaxon-ts results to make building the cli from xml quicker and speedier start up time.

plastikfan commented 4 years ago

What you really need is: https://github.com/sindresorhus/is together with https://github.com/sindresorhus/ow.