Background
Currently metadata is represented as a list of serialized AttributeMetadata objects. This was chosen to allow for the possibility of one-to-many Model <-> MetadataType relationships. Unfortunately, it is cumbersome to quickly retrieve specific attributes from a list.
Enhancement
Metadata could be represented as {*MetadataType* : {*Attributes*}}. In cases where a one-to-many relationship is possible, the metadata could be represented as {*MetadataType* : [{*Attributes*}...]}
Background
Currently metadata is represented as a list of serialized
AttributeMetadataobjects. This was chosen to allow for the possibility of one-to-manyModel<->MetadataTyperelationships. Unfortunately, it is cumbersome to quickly retrieve specific attributes from a list.Enhancement
Metadata could be represented as
{*MetadataType* : {*Attributes*}}. In cases where a one-to-many relationship is possible, the metadata could be represented as{*MetadataType* : [{*Attributes*}...]}