You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ni...@apache.org on 2022/05/24 09:05:19 UTC

[openwhisk] branch poem-support-array-result updated (72e9aaea7 -> cbbc8a766)

This is an automated email from the ASF dual-hosted git repository.

ningyougang pushed a change to branch poem-support-array-result
in repository https://gitbox.apache.org/repos/asf/openwhisk.git


 discard 72e9aaea7 POEM support array result
     new cbbc8a766 POEM support array result

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (72e9aaea7)
            \
             N -- N -- N   refs/heads/poem-support-array-result (cbbc8a766)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 proposals/POEM-support-array-result.md | 1 +
 1 file changed, 1 insertion(+)


[openwhisk] 01/01: POEM support array result

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningyougang pushed a commit to branch poem-support-array-result
in repository https://gitbox.apache.org/repos/asf/openwhisk.git

commit cbbc8a7663aa65c0ca30aee4f697c347ad4f1d9d
Author: ning.yougang <ni...@navercorp.com>
AuthorDate: Tue May 24 16:59:22 2022 +0800

    POEM support array result
---
 proposals/POEM-support-array-result.md | 68 ++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)

diff --git a/proposals/POEM-support-array-result.md b/proposals/POEM-support-array-result.md
new file mode 100644
index 000000000..d6ea124bf
--- /dev/null
+++ b/proposals/POEM-support-array-result.md
@@ -0,0 +1,68 @@
+<!--
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+-->
+# Title
+
+Currently, openwhisk supports return json object only, e.g.
+```shell
+# wsk action invoke hello -r
+{
+    "greeting": "Hello stranger!"
+}
+```
+It is necessary to support return array, e.g.
+```shell
+# wsk action invoke hello-array -r
+[
+    "a",
+    "b"
+]
+```
+
+## Status
+* Current state: In-progress
+* Author(s): @ningyougang
+
+## Summary and Motivation
+
+This POEM proposes a new feature that allows user to write their own action which supports array result.
+So the result will support object and array both in future.
+
+## Proposed changes
+### Openwhisk main repo
+Make controller and invoker support array result both.
+
+### Runtime repos
+* nodejs
+* go
+* java
+* python
+* php
+* shell
+* docker
+* ruby
+* dotnet
+* rust
+* swift 
+
+
+All runtime images should support array result.
+
+### Openwhisk-cli repo
+* When use wsk to execute action, need to support parse array result.
+* When use wsk to get activation, need to support parse array result as well.