Skip to content

Commit b1728ae

Browse files
committed
update sample for typescript-node
1 parent 8733be9 commit b1728ae

File tree

1 file changed

+4
-4
lines changed
  • samples/client/petstore/typescript-node

1 file changed

+4
-4
lines changed

samples/client/petstore/typescript-node/api.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -837,11 +837,11 @@ export class PetApi {
837837
var useFormData = false;
838838

839839
if (name !== undefined) {
840-
formParams['{baseName}}'] = name;
840+
formParams['name'] = name;
841841
}
842842

843843
if (status !== undefined) {
844-
formParams['{baseName}}'] = status;
844+
formParams['status'] = status;
845845
}
846846

847847
var deferred = promise.defer<{ response: http.ClientResponse; }>();
@@ -957,11 +957,11 @@ export class PetApi {
957957
var useFormData = false;
958958

959959
if (additionalMetadata !== undefined) {
960-
formParams['{baseName}}'] = additionalMetadata;
960+
formParams['additionalMetadata'] = additionalMetadata;
961961
}
962962

963963
if (file !== undefined) {
964-
formParams['{baseName}}'] = file;
964+
formParams['file'] = file;
965965
}
966966
useFormData = true;
967967

0 commit comments

Comments
 (0)