[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [tosca] "type" keywords should be conditional, not mandatory
You are correct about the type keyword being optional in refinements. In fact, in refinements *ALL* keywords must be optional, under the assumption that refinements refine already valid definitions, which already have all the mandatory keywords. The Version 2.0 spec states this in Section 5.1, but we could probably improve on the language to make this even more clear.
That said, you chose the one example where this rule doesnât hold, since artifacts are treated differently from most other entities in TOSCA. Artifacts donât have definitions and associated assignments. Instead, they are just directly associated with (or attached to) either a node type or on a node template. If a derived type defines an artifact with the same name as an artifact on a base type, then that artifact just replaces (or overrides) the artifact in the base type. It doesnât refine it, it just redefines it. This is spelled out in Section 5.3.7.2.3 of the Version 2 specification.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]