code: def merge_parameter_lists(*parameter_definitions):
      
      merged_parameters = {}
      for parameter_list in parameter_definitions:
          for parameter in parameter_list:
              key = (parameter['name'], parameter['in'])
              merged_parameters[key] = parameter
      return merged_parameters.values()
docs: Merge multiple lists of parameters into a single list.  If there are any
      duplicate definitions, the last write wins.