Fixed type validation on 'fields' option for api request.