OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

camp message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Commented: (CAMP-144) no way to correlate a resource's "type" value with the array of type definitions contained in the TypeDefinitions resource


    [ http://tools.oasis-open.org/issues/browse/CAMP-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35146#action_35146 ] 

Gilbert Pilz commented on CAMP-144:
-----------------------------------

It struck me that the simplest way to resolve this issue may be to require that, for TypeDefinition resources, the value of the "name" attribute SHALL be the value of the type described by that resource. So the TypeDefinition resource for the "frugenHopper" type would have:

{
    "uri": ....
    "name": "frugenHopper",
    "description": ...
    ...
}

Because the "targetType" attribute of Link reflects the "name" attribute of the referenced resource, this would cause the type name to appear in the TypeDefinitions.typeDefinitionLinks array.

> no way to correlate a resource's "type" value with the array of type definitions contained in the TypeDefinitions resource
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMP-144
>                 URL: http://tools.oasis-open.org/issues/browse/CAMP-144
>             Project: OASIS Cloud Application Management for Platforms (CAMP) TC
>          Issue Type: Bug
>          Components: Spec
>            Reporter: Gilbert Pilz
>
> Suppose a CAMP Provider created a new resource type called a "frugenHopper". Every instance of a resource of this type would therefore have:
> "type": "frugenHopper"
> as an attribute. Suppose a CAMP Consumer runs across a resource of this type and attempts to look it up in the TypeDefinitions resource. Which of the links in the TypeDefinitions.typeDefinitionLinks array references the TypeDefinition for the "frugenHopper" type? 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]