generalise validator for all resource types
share common types between schemas
resource definition infrastructure is ready