Existence matches {0} and further specialization: Should it be removed when flattening?

Description

  • prohibited attributes (existences matches {0}) should be removed from the flat structure according to the ADL2 spec. So if i do:

1:

1 ... value matches {...}

Then in specializing archetype:

1 ... values existence matches {0}

Then in the third or even fourth specilization level I do:

1 values existence matches {1} matches {}

You would think this is not valid. But there is no way to check in the flattener, because the values attribute has been removed from the flat parent. If specialized at the third level, you could still check with the flat parent. But at the fourth level, the values attribute is gone, so there's no longer a way to check if the values attribute is allowed to be present in the flat parent.

Shouldn't the CAttribute just be kept in place until say operational template creation, to prevent this problem?

Problem is not present at the CObject level because of node ids and specialization level.

Environment

None

Status

Reporter

Pieter Bos

Labels

None

Components

Affects versions

AM version 2.0.6

Priority

Minor
Configure