[Dev] Specifying items in the JSON Schema

2016-03-19 Thread Sohani Weerasinghe
Hi All,

When we are specifying the items for an array, according to [1], we can
specify items wrapped with '[ ]' as shown below

   {
   "items": *[* {}, {}, {} *]*

   }

Shall we proceed with this approach? WDYT?

[1]
http://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.3.1

Thanks,
Sohani

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

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Specifying items in the JSON Schema

2016-03-19 Thread Sohani Weerasinghe
Thanks Chanaka for the input

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

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Thu, Mar 17, 2016 at 3:01 PM, Chanaka Fernando  wrote:

> I think this is typical json array representation.
>
> +1 for this approach.
>
> On Thu, Mar 17, 2016 at 2:54 PM, Sohani Weerasinghe 
> wrote:
>
>> Hi All,
>>
>> When we are specifying the items for an array, according to [1], we can
>> specify items wrapped with '[ ]' as shown below
>>
>>{
>>"items": *[* {}, {}, {} *]*
>>
>>}
>>
>> Shall we proceed with this approach? WDYT?
>>
>> [1]
>> http://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.3.1
>>
>> Thanks,
>> Sohani
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>
>
>
> --
> Thank you and Best Regards,
> Chanaka Fernando
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
>
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Specifying items in the JSON Schema

2016-03-19 Thread Chanaka Fernando
I think this is typical json array representation.

+1 for this approach.

On Thu, Mar 17, 2016 at 2:54 PM, Sohani Weerasinghe  wrote:

> Hi All,
>
> When we are specifying the items for an array, according to [1], we can
> specify items wrapped with '[ ]' as shown below
>
>{
>"items": *[* {}, {}, {} *]*
>
>}
>
> Shall we proceed with this approach? WDYT?
>
> [1]
> http://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.3.1
>
> Thanks,
> Sohani
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>



-- 
Thank you and Best Regards,
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev