It should be a map (object)... see RO Spec 14.4, and the subsections
14.4.1, 14.4.2, 14.4.3.

I think this was in the last release (isis-core-1.2.0, 31 May 2013).
 Perhaps the quickstart archetype is running against the previous version
(isis-core-1.1.0, 31 Jan 2013).

Dan



On 10 July 2013 15:35, DImuthu Upeksha <[email protected]> wrote:

> Thank you Dan
>
> What about the problem of "members" attribute? One has a representation of
> an object and the other one has an array representation. I have marked it
> in the attachment.
>
> Thanx
> Dimuthu
>
>
> On Wed, Jul 10, 2013 at 7:12 AM, Dan Haywood <[email protected]
> > wrote:
>
>>
>> On 10 July 2013 10:20, DImuthu Upeksha <[email protected]>wrote:
>>
>>>
>>> For my testing purposes I use RO viewers of Quick Start archetype [1]
>>> and TCK (Viewer we used to write TCK tests). I got an issue in domain
>>> service representation when I was comparing the both representations.
>>>
>>> 1. In Quick Start viewer "oid" attribute is directly a child of outer
>>> object while in TCK viewer it is put in "extensions" map
>>>
>>> 2  In Quick Start viewer "members" attribute is an array but in TCK
>>> viewer it is an object.
>>>
>>> What is the correct representation?
>>>
>>
>> (2).
>>
>> The "oid" attribute is not defined in the RO spec; therefore it should be
>> in "extensions". The quickstart viewer archetype is referencing 1.2.0
>> release artifacts.  This is a fix that I (guess I) did post 1.2.0 release.
>>
>> ~~~
>> More fundamentally, though, you should probably be shouldn't be using
>> "oid" at all; instead use "serviceId" (for domain services) or
>>  "domainType/instanceId" pair (for domain objects).  See section 14.4.
>>
>> Also... if you find anywhere that the implementation is incorrect with
>> respect to the spec, please fix it in your clone of Isis and attach patch
>> to the ISIS ticket (as a few weeks ago).
>>
>> Thx
>> Dan
>>
>>
>>
>
>
> --
> Regards
>
> W.Dimuthu Upeksha
> Undergraduate
> Department of Computer Science And Engineering
>
> University of Moratuwa, Sri Lanka
>

Reply via email to