[Dev] WSO2 Committers += Amjadh Ifthikar

2019-04-23 Thread Amalka Subasinghe
Hi All,

It's my pleasure to announce Amjadh Ifthikar as a WSO2 committer. He has
been a valuable contributor to WSO2 Open Banking team.

Congratulations Amjadh!

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Sharon David

2019-04-23 Thread Kavith Lokuhewage
Hi All,

It's my pleasure to announce Sharon David as a WSO2 committer. She has been
a valuable contributor to both WSO2 UX team and Ballerina team.

Congratulations Sharon!

...
*Kavith Lokuhewage* | WSO2 Inc.
(m) +94 77 9145123 |  (e) kav...@wso2.com 
GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to handle an array of one

2019-04-23 Thread Arunan Sugunakumar
Hi Kanishka,

It would be helpful if you can share the payload factory configuration. The
scenario works fine according to the below configuration.

http://ws.apache.org/ns/synapse"; name="arrayCheck"
context="/check1">
   
  
 
   {"outerbody" : $1}

   

 
 
  
   


Regards,
Arunan

On Wed, Apr 24, 2019 at 9:27 AM Kanishka Gunathilaka 
wrote:

> Hi All,
>
> When I try to pass single item only array through payloadfactory or
> datamapper mediator it returns me array as an object.
>
> For example I am expecting following result.
> { “entity” :
>   [ { “attr1” : “value”, “attr2” : “another value”}
>   ]
> }
>
> But I am getting this response.
> { “entity” :
>   { “attr1” : “value”, “attr2” : “another value”}
> }
>
> Could you please explain me how I can overcome this issue?
>
> Thank you,
> Kanishka
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Sugunakumar Arunan*
Software Engineer | WSO2

Email : aru...@wso2.com
Mobile : +94766016272
Web : http://wso2.com

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to handle an array of one

2019-04-23 Thread Kanishka Gunathilaka
Hi All,

When I try to pass single item only array through payloadfactory or
datamapper mediator it returns me array as an object.

For example I am expecting following result.
{ “entity” :
  [ { “attr1” : “value”, “attr2” : “another value”}
  ]
}

But I am getting this response.
{ “entity” :
  { “attr1” : “value”, “attr2” : “another value”}
}

Could you please explain me how I can overcome this issue?

Thank you,
Kanishka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev