Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
#2147: generate samples
  • Loading branch information
macjohnny committed Feb 13, 2019
commit b663f5c975c62405d5b21fb10f61084fdf05f175
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,10 @@ export class PetService {
}

if (name !== undefined) {
formParams = formParams.append('name', <any>name) || formParams;
formParams = formParams.append('name', <any>name) as any || formParams;
}
if (status !== undefined) {
formParams = formParams.append('status', <any>status) || formParams;
formParams = formParams.append('status', <any>status) as any || formParams;
}

return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
Expand Down Expand Up @@ -498,10 +498,10 @@ export class PetService {
}

if (additionalMetadata !== undefined) {
formParams = formParams.append('additionalMetadata', <any>additionalMetadata) || formParams;
formParams = formParams.append('additionalMetadata', <any>additionalMetadata) as any || formParams;
}
if (file !== undefined) {
formParams = formParams.append('file', <any>file) || formParams;
formParams = formParams.append('file', <any>file) as any || formParams;
}

return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
Expand Down