- for key, param in yml.get('parameters', {}).items():
- assert isinstance(param, dict), '%s parameter %s is not dict' % (
- yaml_file,
- key)
- assert 'type' in param, '%s parameter %s has no "type"' % (
- yaml_file,
- key)
- typ = param['type']
+ for key, param in yml.get("parameters", {}).items():
+ assert isinstance(param, dict), "%s parameter %s is not dict" % (yaml_file, key)
+ if "type" not in param:
+ continue
+ typ = param["type"]