Re: [Architecture] Representing Data Types in JSON schema when objects hold values

2016-04-12 Thread Sohani Weerasinghe
Hi All, Please note that if an element contains attributes or properties we are considering it as an object and if it only holds a value then it will be considered as a primitive type eg: sample 0112655655 0112655656 phone will treat as a primitive array and the schema

Re: [Architecture] Representing Data Types in JSON schema when objects hold values

2016-04-12 Thread Susinda Perera
Implemented above scenarios (also mentioned in [1]) in schema generation. [1] - https://docs.google.com/a/wso2.com/document/d/1s820PSZlhRYq8kGc9GFwJaMcpQX8X4jz9sFvo1bK6rI/edit?usp=sharing On Tue, Apr 12, 2016 at 3:06 PM, Sohani Weerasinghe wrote: > Hi All, > > Please find below details on the

[Architecture] Representing Data Types in JSON schema when objects hold values

2016-04-12 Thread Sohani Weerasinghe
Hi All, Please find below details on the support provided in defining the data types for objects( when holding values) in JSON schema. Problem: When an object array or a primitive array or an object holds a value, there should be a way to define the data type of that value in the schema. http: