apache / openwhisk-catalog

Curated catalog of Apache OpenWhisk packages to interface with event producers and consumers
https://openwhisk.apache.org/
Apache License 2.0
33 stars 49 forks source link

apply consistent naming to parameters in util actions #202

Closed markusthoemmes closed 3 years ago

markusthoemmes commented 7 years ago

@sjfink commented on Fri Nov 11 2016

A user was confused when making a sequence from one of our hello world examples to our wordCount issue.

The issue is that hello returns a JSON object with an attribute "message" but wordcount expects an attribute "payload".

Two suggestions: 1) decide on a uniform convention of the field name used by all our samples that produce or consume a single value. Perhaps "payload" or "value".

2) enhance wordCount (and all our shell utils) as follows: add an optional parameter 'fieldName". If fieldName is set, do the wordCount of the string of that field. If it's not set, then do the wordCount on the first field in the input object.

dgrove-oss commented 3 years ago

Closing as won't do per discussion https://lists.apache.org/thread.html/rbf910263cb2d44a009e2253add3bdc4347977b73fc3eeac37c6fa396%40%3Cdev.openwhisk.apache.org%3E