Thanks Nuwan. Shall we go with '@' then?

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

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

On Wed, Mar 16, 2016 at 10:23 AM, Nuwan Pallewela <[email protected]> wrote:

> Hi sohani,
>
> I think we do not need to include new type called "attr" to define it as a
> attribute. We can name the field with a prefix like "@" or "attr_".
>
> Eg:
> "@firstname": {
>             "id": "http://jsonschema.net/employee/0/firstname";,
>             "type": "string"
>           },
>
> or
>
> "attr_firstname": {
>             "id": "http://jsonschema.net/employee/0/firstname";,
>             "type": "string"
>           },
>
> Thanks,
> Nuwan
>
> On Wed, Mar 16, 2016 at 10:15 AM, Sohani Weerasinghe <[email protected]>
> wrote:
>
>> Hi Nuwan/ Viraj,
>>
>> Can you please mention how are we going to handle $subject?
>>
>> Can we have a new field as attr as below to handle the attributes?
>>
>> "firstname": {
>>             "id": "http://jsonschema.net/employee/0/firstname";,
>>             "type": "string",
>>             *"attr" : "xyz"*
>>           },
>>
>> Thanks,
>> Sohani
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog     :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>
>
>
> --
> ----------------------------------------------------------
>
> *Nuwan Chamara Pallewela*
>
>
> *Software Engineer*
>
> *WSO2, Inc. *http://wso2.com
> *lean . enterprise . middleware*
>
> Email   *[email protected] <[email protected]>*
> Mobile  *+94719079739 <%2B94719079739>@*
>
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to