Fix a typing bug in consumer validation.