On 12/04/2017 12:46 PM, Mark Trayer wrote:
> Greetings,
> 
> You don't need to do anything with the RT in the actual Resource on the wire; 
> as Wouter noted the 'baseresource' is a schema mechanism by which we can 
> define 'properties available to any OCF resource instance' without having to 
> explicitly call them out every time, take a look at any of the schemas in 
> oneIoTa (e.g. Dimming ... https://oneiota.org/revisions/2398) and you can see 
> that an instance of a JSON document that conforms to this is an object that 
> pulls from the baseresource.json definition and the oic.r.light.dimming 
> defined properties.   Simply having "rt" of "oic.r.light.dimming" is then 
> sufficient to fully define the applicable schema.  Multi-value RT does not 
> apply as you don't expose the two RTs, just the RT of the resource that is 
> building on baseresource (which is all of them in the Resource Type spec).

maybe a useful addition for device/app developers (as opposed to for
schema writers) would be an "expand" button which shows the whole
resource, without references to other files.

_______________________________________________
iotivity-dev mailing list
[email protected]
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to