ningyougang commented on code in PR #5311:
URL: https://github.com/apache/openwhisk/pull/5311#discussion_r948624221
##########
docs/actions-rust.md:
##########
@@ -58,6 +58,38 @@ pub fn main(args: Value) -> Result<Value, Error> {
Rust actions are mainly composed by a `main` function that accepts a JSON
`serdes Value` as input and returns a `Result` including a JSON `serde Value`.
+For the return result, not only support `A JSON serde Value` but also support
`Array serde Value`
+
+So a simple `hello array` funtion would be:
Review Comment:
Updated accordingly
##########
docs/actions-swift.md:
##########
@@ -45,6 +46,27 @@ func main(args: [String:Any]) -> [String:Any] {
```
In this example the Swift action consumes a dictionary and produces a
dictionary.
+For the return result, not only support `dictionary`, but also support `array`
+
+So a very simple `hello array` function woule be:
Review Comment:
Updated accordingly
##########
docs/actions-ruby.md:
##########
@@ -39,6 +39,27 @@ def main(args)
end
```
+For the return result, not only support `dictionary` but also support `array`
+
+So a very simple `hello array` function would be:
Review Comment:
Updated accordingly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]