Forums » #273 - OCCI JSON Rendering »
Rendering/Parsing issues with hierarchical 'attributes'
Added by Boris Parak over 7 years ago
A rendering specification cannot decide to split attribute names on '.' to create a hierarchical structure when the Core document defines attribute names as indivisible identifiers (without any internal structure). Forcing this approach will break attributes with names containing other attribute names as prefixes:
occi.core.target = "value"
occi.core.target.type = "value"
It will also make complex attribute values difficult/impossible to identify, e.g. Object (Hash) as an attribute value.
I would recommend flattening this hierarchical structure to:
"attributes": {
"occi.core.attribute.name": Object,
...
}
IMHO, this is an important issue that needs to be addressed.
Replies (2)
RE: Rendering/Parsing issues with hierarchical 'attributes' - Added by Boris Parak over 7 years ago
For details, see https://www.ogf.org/pipermail/occi-wg/2015-August/003667.html
RE: Rendering/Parsing issues with hierarchical 'attributes' - Added by Andy Edmonds about 7 years ago
(1-2/2)