summaryrefslogtreecommitdiffstats
path: root/tosca2heat/tosca-parser/toscaparser/parameters.py
diff options
context:
space:
mode:
Diffstat (limited to 'tosca2heat/tosca-parser/toscaparser/parameters.py')
-rw-r--r--tosca2heat/tosca-parser/toscaparser/parameters.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tosca2heat/tosca-parser/toscaparser/parameters.py b/tosca2heat/tosca-parser/toscaparser/parameters.py
index 1d2cb29..ca8e697 100644
--- a/tosca2heat/tosca-parser/toscaparser/parameters.py
+++ b/tosca2heat/tosca-parser/toscaparser/parameters.py
@@ -35,11 +35,18 @@ class Input(object):
self.name = name
self.schema = Schema(name, schema_dict)
+ self._validate_field()
+ self.validate_type(self.type)
+
@property
def type(self):
return self.schema.type
@property
+ def required(self):
+ return self.schema.required
+
+ @property
def description(self):
return self.schema.description
@@ -52,8 +59,6 @@ class Input(object):
return self.schema.constraints
def validate(self, value=None):
- self._validate_field()
- self.validate_type(self.type)
if value is not None:
self._validate_value(value)