The query language allows querying whether a member is optional by using
the '*' "operator" but the dumper script didn't output those query
strings.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
membpath = "%s/%s" % (cur, memb['name'])
print(membpath)
+ # object members can be queried for optionality by '*'
+ if 'default' in memb:
+ print("%s/*%s" % (cur, memb['name']))
+
for f in memb.get('features', []):
print('%s/$%s' % (membpath, f))