Typed Link

Added by Jean Parpaillon almost 4 years ago

I would like to introduce the possibility to add an optional constraints on the type of resource's category pointed out by the src and target attributes of a link.

For instance, in the infrastructure extension, while it is specified (and easily make sense) a NetworkInterface link must be linked to a compute and a network instance, there is no formal way to define this constraint.

This can be achieved with two additional (and optional) attributes on the Link type:
occi.core.src.type : optional, type: category id
occi.core.target.type : optional, type: category id

source_type and target_type attribute name are an alternative, would the former are much complex too implement (JSON rendering).

Replies (1)