See: http://docs.ckan.org/en/latest/architecture.html#validation-and-ckan-logic-schema