Repository navigation
Destination Monetate - #285
Conversation
| "Content-Type": "application/json" | ||
| }, | ||
| "params": {}, | ||
| "body": "{\"monetateId\":\"1234\",\"events\":[{\"eventType\":\"monetate:context:IpAddress\",\"ipAddress\":\"0.0.0.0\"},{\"eventType\":\"monetate:context:ScreenSize\",\"height\":22,\"width\":11}],\"customerId\":\"newUser\",\"channel\":\"channel\"}", |
There was a problem hiding this comment.
not a json..we need to pass json?
There was a problem hiding this comment.
check also the type of each key, seems need string
refer the api spec once
There was a problem hiding this comment.
Changed the type to JSON.
And also checked for key types and made necessary changes.
| "targetChildType": "object", | ||
| "targetFormat": { | ||
| "eventType": "monetate:context:PageView", | ||
| "url": "sourceKeyValue.url", |
There was a problem hiding this comment.
we may add an explicit type for the individual target keys instead.
Can discuss it in our broader refactoring plan
| [ | ||
| { | ||
| "destKey": "events", | ||
| "sourceKeys": "context.screen", |
There was a problem hiding this comment.
this is the screen location in mobile sdk payload?
| "sourceKeys": ["properties.page", "context.page"], | ||
| "metadata": { | ||
| "targetType": "Array", | ||
| "isTargetTypePrimitive": false, |
There was a problem hiding this comment.
may not require another key and find it from the "targetType"
Can discuss it in our broader refactoring plan
|
|
||
| inputData.forEach((input, index) => { | ||
| it(`${name} Tests: payload - ${index}`, () => { | ||
| it(`${name} Tests: payload - ${index}`, async () => { |
There was a problem hiding this comment.
why is async/await required here?
@Manashi-1881
No description provided.