def _api_to_objects_definition(api_response):
    pipeline_objects = []
    for element in api_response:
        current = {
            'id': element['id'],
            'name': element['name']
        }
        for field in element['fields']:
            key = field['key']
            if field in 'stringValue':
                value = field['stringValue']
            else:
                value = {'ref': field['refValue']}
            _add_value(key, value, current)
        pipeline_objects.append(current)
    return pipeline_objects
dataset/ETHPy150Open SimpleFinance/pipewelder/pipewelder/translator.py/_api_to_objects_definition/swapped operands of `in`