Enforce InstanceIdentifier creation 63/100063/6
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 11 Mar 2022 06:48:14 +0000 (07:48 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 11 Mar 2022 17:18:12 +0000 (18:18 +0100)
We currently allow an InstanceIdentifier to be created for any
DataObject, which is wrong, as that includes raw RpcInputs,
Notifications and the like.

Update create() method to require proper relationship with DataRoot
instances. Alternatives can be worked through instantiating a proper
builder.

Also enforce individual items to always have the proper type.

JIRA: MDSAL-370
Change-Id: I38e83760c0ec29613a9ded24c0783bef940c9b7e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>

No differences found