Hi All,

If we consider a payload which has values such as telephone numbers,
userID, house no etc, when generating the JSON schema they are treated as
"numbers".

When user tries to map the payload, final generated outcome displays as a
double value.

eg: If we pass an object as below, the output comes as 1.12655655E8 which
is wrong.

<phone primary="false">
      0112655655
      <ext>01</ext>
   </phone>

AFAIU, before generating the mapping config user should be provided with an
option to change the data type of that particular field into String. As a
solution I think we should provide a property so that user can change the
type. WDYT?

Thanks,
Sohani

Sohani Weerasinghe
Senior Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog     :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to