Skip to content

Commit

Permalink
fix: generate model metadata xmlNamespace properly (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Mar 1, 2019
1 parent 8fa3280 commit f2aa325
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/client-sqs-node/model/ServiceMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export const ServiceMetadata: _ServiceMetadata_ = {
serviceId: 'SQS',
signatureVersion: 'v4',
uid: 'sqs-2012-11-05',
xmlNamespace: '[object Object]'
xmlNamespace: {"uri":"http://queue.amazonaws.com/doc/2012-11-05/"}
};
export const clientVersion: string = '0.1.0-preview.2';
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export class ServiceMetadata {
let metadata = Object.keys(this.metadata)
.sort()
.map((key) => {
if (key === 'xmlNamespace') return `${key}: ${JSON.stringify(this.metadata[key])}`;
return `${key}: '${(this.metadata as any)[key]}'`;
}).join(',\n');
return `
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,5 @@ export interface ServiceMetadata {
/**
* Required for query services.
*/
xmlNamespace?: string;
xmlNamespace?: XmlNamespace;
}

0 comments on commit f2aa325

Please sign in to comment.