Re: [Dev] JSON schema for JSON payloads without a root element - visual datamapper editor

2016-06-15 Thread Sohani Weerasinghe
Hi All, As per the offline discussion we had the json objects should be wrapped with a root element when generating the schema hence, please find the below implementation details; Input: { "Order":{ "orderId":"ee1a9ec2-c8a5-4afe-8585-74df591f9990", "additions":"Chocolate Chip

Re: [Dev] JSON schema for JSON payloads without a root element - visual datamapper editor

2016-05-31 Thread Sohani Weerasinghe
Hi All, Based on the above discussion, I need to finalize the JSON schema format generated for below use cases. 1. When the root element is an array Input: [ "777925", "732321" ] Json Schema : { "$schema" : "http://json-schema.org/draft-04/schema#;, "id" : "http://wso2jsonschema.org;,

Re: [Dev] JSON schema for JSON payloads without a root element - visual datamapper editor

2016-05-25 Thread Sohani Weerasinghe
Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Wed, May 25, 2016 at 2:48 PM, Nuwan Pallewela wrote: > Hi Sohani, > > On Wed, May 25, 2016

Re: [Dev] JSON schema for JSON payloads without a root element - visual datamapper editor

2016-05-25 Thread Nuwan Pallewela
Hi Sohani, On Wed, May 25, 2016 at 11:03 AM, Sohani Weerasinghe wrote: > Hi All, > > Since there can be JSON payloads without a root element as shown below, we > are in a process of generating the JSON schema for such payloads. Please > find the implementation details > > eg 1:

[Dev] JSON schema for JSON payloads without a root element - visual datamapper editor

2016-05-24 Thread Sohani Weerasinghe
Hi All, Since there can be JSON payloads without a root element as shown below, we are in a process of generating the JSON schema for such payloads. Please find the implementation details eg 1: *Input*: [ "777925", "732321" ] *JSON schema:* { "$schema" :