spec icon indicating copy to clipboard operation
spec copied to clipboard

How do * inputs (and outputs?) work?

Open tlrobinson opened this issue 13 years ago • 0 comments

In the formatter block it looks like we assume there is a "*" property on the input object, which is itself an object containing arbitrary keys.

I assumed "" would just be a signal to pipeline editors that any extra properties were allowed (maybe only of a specific type?), and there wouldn't actually be a "" property in the requests/responses.

A framework like node-webpipe could split any undeclared properties into a separate object for convenience. I think this would simplify some things, like the pipeline executors.

Also, does it make sense to have "" outputs? In my pipeline editor I have two pseudo-blocks representing the inputs and outputs for the pipeline (if any). The inputs psuedo-block has a "" output that lets you add new pipeline inputs. But does it make sense for normal blocks? It may make sense if we eventually have other pipeline styles that pipe around whole records rather than values (similar to Storm, maybe)

Discuss.

tlrobinson avatar Dec 03 '12 07:12 tlrobinson