Hi,
I tried using the property type 'null' in one of the properties of a node type.
And I didn't pass any value to the property in the respective node template.
When I tried storing the template, I get the following validation issues,
Storing service template null_test...
Validation issues:
2: field "type" in
"aria_extension_tosca.simple_v1_0.definitions.PropertyDefinition" is not a
valid "str": None
@"null.yaml":9:15
ValueError: not a "unicode": None
4: "type" refers to an unknown data type in "my_null_param": 'None'
@"null.yaml":9:15
Failed to parse service template
I used the following service template,
tosca_definitions_version: tosca_simple_yaml_1_0
node_types:
tosca.nodes.null:
derived_from: tosca.nodes.Root
properties:
my_null_param:
required: True
type: null
my_str_param:
required: True
type: string
topology_template:
node_templates:
test_node:
type: tosca.nodes.null
properties:
my_null_param:
my_str_param: hello
I had a look at the source code and found that 'null' is regarded as a
primitive datatype.
As 'null' type also have a YAML specification that must be adhered, could that
be handled as a separate datatype like 'timestamp' ?
And also is this a known issue? Does a JIRA exist for this?
Thanks,
/Vaish