Skip to content

Commit 8f7c62f

Browse files
committed
refactor: require filenames for createStopwordList in discovery and convertToHTML in compare comply
BREAKING CHANGE: The methods `createStopwordList` in discovery and `convertToHTML` in comply comply now have new, required parameters To migrate your code, include the parameter `stopword_filename` for `createStopwordList`, and `filename` for `convertToHTML`
1 parent ecb5dee commit 8f7c62f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compare-comply/v1.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class CompareComplyV1 extends BaseService {
8080
public convertToHtml(params: CompareComplyV1.ConvertToHtmlParams, callback?: CompareComplyV1.Callback<CompareComplyV1.HTMLReturn>): Promise<any> | void {
8181
const _params = extend({}, params);
8282
const _callback = callback;
83-
const requiredParams = ['file'];
83+
const requiredParams = ['file', 'filename'];
8484

8585
if (!_callback) {
8686
return new Promise((resolve, reject) => {

discovery/v1-generated.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ class DiscoveryV1 extends BaseService {
12621262
public createStopwordList(params: DiscoveryV1.CreateStopwordListParams, callback?: DiscoveryV1.Callback<DiscoveryV1.TokenDictStatusResponse>): Promise<any> | void {
12631263
const _params = extend({}, params);
12641264
const _callback = (callback) ? callback : () => { /* noop */ };
1265-
const requiredParams = ['environment_id', 'collection_id', 'stopword_file'];
1265+
const requiredParams = ['environment_id', 'collection_id', 'stopword_file', 'stopword_filename'];
12661266

12671267
if (!_callback) {
12681268
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)