def get_options_jsonschema(options):
 for (item, option) in enumerate(options):
  if (isinstance(option, dict) and option.get('text')):
   options[item] = option.get('text')
 value = {'enum': options}
 return value

def get_options_jsonschema ( options ) : for ( item , option ) in enumerate ( options ) : if ( isinstance ( option , dict ) and option . get ( 'text' ) ) : options [ item ] = option . get ( 'text' ) value = { 'enum' : options } return value
returns multiple choice options for schema questions .