field 'type' required