Skip to content

Implicit TypeFeaturing possibly missing during textual import #1998

@flatombe

Description

@flatombe

When importing the following textual model:

package Test {

    item def MyItemDef {
        item myFeature: A;
    }

    item def A {
        attribute name: ScalarValues::String;
    }

}

Then the validation raises the following Warning:

If a Feature is owned via a FeatureMembership, then it must have a featuringType for which the operation isFeaturingType returns true. (checkFeatureFeatureMembershipTypeFeaturing constraint on Feature is not respected for Test::MyItemDef::myFeature)

Arthur noted:

If I understand correctly at some point myFeature should be typed with A but also implicitly own a TypeFeaturing that targets "MyItemDef". The current implementation of SysON does not implicitly add this TypeFeaturing element causing this validation error.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions