Skip to content

Commit f5d4315

Browse files
authored
Merge pull request #847 from watson-developer-cloud/make-filename-required
refactor: require filenames where applicable
2 parents ecb5dee + 8f7c62f commit f5d4315

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compare-comply/v1.ts

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)