Using Prismatic/Schema for type-checking