Create a schema to validate objects against - e.g. mongodb documents