Closed pmjordan closed 2 years ago
Thanks! The YAML you provided here is malformed, possibly a copy-paste error. I fixed it to what I think you meant, but then cannot replicate the issue:
tosca_defintions_version: tosca_simple_yaml_1_3
capability_types:
TMFAPI:
derived_from: tosca.capabilities.Node
description: a TMForum defined REST API
properties:
id:
type: string
description: the id e.g TMF632
name:
type: string
description: the name, e.g. party
TMF632:
derived_from: TMFAPI
properties:
id: TMF632
name: party
Sorry. Must have been my error.
My TOSCA template contains
But this is rejected the puccini parser with a message @19, 7 capability_types["TMF632"].properties["id"]: "string" instead of "map" @20, 7 capability_types["TMF632"].properties["name"]: "string" instead of "map"
Perhaps this is because you are not expecting property defintion refinements as described in section 3.6.10.6 of TOSCA v1.3
thanks to @philippemerle for pointing out that an example of this syntax is given in section 3.6.10.8