I would like to run a processing algorithms in QGIS3 with a memory vector layer as result.

When I define the memory layer as shown in the following, I get the error 

> Incorrect parameter value for output

while in the Python Error window `output` is indicated as `QgsVectorLayer` and `nodesLayer.isValid()` returns `True`:

   <!-- language: python -->

    crs = str(inputLayer.crs().authid())
    outputLayer = QgsVectorLayer('Point?crs=' + crs , "points", "memory")
    processing.run('grass7:v.net',
                    {"input":inputLayer,
                     ...
                    "output": outputLayer})

If I use a path to the output layer, everything works fine:

   <!-- language: python -->

    outputLayer = r"path_to_file\output.shp"
    processing.run('grass7:v.net',
                    {"input":inputLayer,
                     ...
                    "output": outputLayer})

Any idea on how to correctly create a memory layer in QGIS 3?