18
18
-->
19
19
# Title
20
20
21
- Currently, openwhisk supports return json object only, e.g.
21
+ Currently, OpenWhisk supports returning a JSON object only, e.g.
22
22
``` shell
23
23
# wsk action invoke hello -r
24
24
{
25
25
" greeting" : " Hello stranger!"
26
26
}
27
27
```
28
- It is necessary to support return array for common action , e.g.
28
+ It is necessary to support returning an array too as an array is also a proper JSON object , e.g.
29
29
``` shell
30
30
# wsk action invoke hello-array -r
31
31
[
32
32
" a" ,
33
33
" b"
34
34
]
35
35
```
36
- For sequence action, need to support as well.
36
+ The sequence action should be considered support as well.
37
37
38
38
# Status
39
39
* Current state: In-progress
40
40
* Author(s): @ningyougang
41
41
42
42
# Summary and Motivation
43
43
44
- This POEM proposes a new feature that allows user to write their own action which supports array result.
45
- So the result will support object and array both in future .
44
+ This POEM proposes a new feature that allows user to write their own action which supports an array result.
45
+ So actions would be able to return a JSON object or an array .
46
46
47
47
# Proposed changes
48
48
## Openwhisk main repo
49
- Make controller and invoker support array result both .
49
+ Make controller and invoker support both a JSON object and an array result.
50
50
51
51
## Runtime repos
52
- All runtime images should support array result. e.g.
52
+ All runtime images should support an array result. e.g.
53
53
54
54
* nodejs (supports by default)
55
55
* go
@@ -66,5 +66,5 @@ All runtime images should support array result. e.g.
66
66
* ballerina
67
67
68
68
## Openwhisk-cli repo
69
- * When use wsk to execute action, need to support parse array result.
70
- * When use wsk to get activation, need to support parse array result as well .
69
+ * The ` wsk ` CLI needs to support parsing an array result when executing actions .
70
+ * The ` wsk ` CLI needs to support parsing an array result when getting activations .
0 commit comments