enable triggering of parameter-less functions

This commit is contained in:
Samuel Sadok
2018-04-26 17:13:10 -07:00
parent cb6f2d5143
commit 5fc48f23dd
5 changed files with 51 additions and 5 deletions
+6
View File
@@ -13,6 +13,12 @@ def get_flat_endpoint_list(json, prefix):
is_property = True
elif item['type'] in {'bool', 'float'}:
is_property = True
elif item['type'] in {'function'}:
if len(item.get('arguments', [])) == 0 and len(item.get('inputs', [])) == 0 and len(item.get('outputs', [])) == 0:
item['type'] = 'void'
is_property = True
else:
is_property = False
else:
is_property = False
if is_property: