[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [tosca] Propagation of default values in inheritance hierarchies: standpoint for TOSCA v1.2/v1.3?
Dear TOSCA Experts,
Â
in TOSCA v1.2 and v1.3, is the below example node template valid i.e. does its (required) property complex_1.example_1.property_1 have the value value_1?
Â
data_types:
 provider.datatypes.Example:
ÂÂÂ derived_from: tosca.datatypes.Root
ÂÂÂ properties:
ÂÂÂÂÂ property_1:
ÂÂÂÂÂÂÂ type: string
ÂÂÂÂÂÂÂ default: value_1
Â
 provider.datatypes.Complex:
ÂÂÂ derived_from: tosca.datatypes.Root
ÂÂÂ properties:
ÂÂÂÂÂ example_1:
ÂÂÂÂÂÂÂ type: provider.datatypes.Example
Â
node_types:
 provider.nodes.Example:
ÂÂÂ derived_from: tosca.nodes.Root
ÂÂÂ properties:
ÂÂÂÂÂ complex_1:
ÂÂÂÂÂÂÂ type: provider.datatypes.Complex
Â
topology_template:
 node_templates:
ÂÂÂ example:
ÂÂÂÂÂ type: provider.nodes.Example
Â
Propagation of default values is not explicitly covered by TOSCA v1.2/v1.3.
Â
In the TOSCA v2.0 draft, I can see one sentence that makes me answer the above question affirmatively: âdefault: a new definition is unrestricted and will overwrite the one inherited from the property definition in the parent entity type definition" (4.4.5.5 Refinement rules).
Â
Greetings,
Â
GÃbor
Â
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]