Hi Gábor,
- When the entry_schema is not provided, there is no type specified, meaning the type of the entries in the collection could be anything. The only condition that must hold true is
that all the entries must be of the same type.
- The comment in v1.3, 3.3.1.1 is not correct, since ‘type’ is a mandatory keyword for property definitions, so there is never a situation where a “default” type must be used. While
it is true that “type” is not required for parameter definitions, in practice those definitions will also always have a type:
- If the parameter definition defines a “refinement” of a property definition, and the parameter definition does specify a type, then then type of the refined property definition
is used.
- If the parameter definition defines and input or an output definition, and there is not type specified, the orchestrator will be able to determine an “implied” type by looking at
the type of the “value” or the “mapping” fields in the parameter definition.
Hope this helps,
Chris
From: tosca@lists.oasis-open.org <tosca@lists.oasis-open.org>
On Behalf Of Marton, Gabor (Nokia - HU/Budapest)
Sent: Friday, July 17, 2020 8:08 AM
To: tosca@lists.oasis-open.org
Cc: Nemeth, Denes (Nokia - HU/Budapest) <denes.nemeth@nokia.com>; Nguyenphu, Thinh (Nokia - US/Dallas) <thinh.nguyenphu@nokia.com>
Subject: [tosca] Map/list without entry_schema
Dear TOSCA Experts,
what is the type of the entries in a map or list when the entry_schema is not provided?
data_types:
provider.datatypes.Example:
derived_from: tosca.datatypes.Root
properties:
map_without_entry_schema:
type: map
Is it string? For properties and parameters at least, the default type is explicitly stated to be string (v1.3, 3.3.1.1), but I found no similar statement for entry_schema.
Greetings,
Gábor
|