OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

tosca message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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]