5. So It’s Joi, JSONSchema, PropTypes, Flow?
● Easy custom types & nested (vs Joi, JSONSchema)
● Casting + validation in middleware vs PropTypes
● Runtime, not compile time vs Flow (buggy APIs)
6. Core Principles
● Composable: can nest and transform types
● Inspectable: introspect deeply nested paths
● Extendable: any class is a valid custom type
13. More Info on Archetype
● Gists of the week available on
npmjs.com/package/archetype
● Casting and Validating GeoJSON With Archetype
on thecodebarbarian.com