-
Notifications
You must be signed in to change notification settings - Fork 8
Description
After reading @ahdinosaur comment in the feathers action issue: #9 (comment) I went and did a little reading around json-schema and type checking.
gcanti did publish a module for json-schema to tcomb and in an issue a zerkalica asks about ajv - commenting that it has more feature but is too bloated for front end (200kb at time). https://github.com/epoberezkin/ajv
I looked at ajv and thought that it looked active and I started wondering if this would be a good alternative for tcomb for us.
Main benefit I see is using json-schema to define our types rather then tcomb objects. json-schema is obviously more established and is used in other languages. We could then also look to develop a json schema as part of our discovery phase.
Main flaw is maybe its size - though given we are using other bloated libraries I don't think this matters to much.