You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by cs...@apache.org on 2017/11/28 21:55:20 UTC

[incubator-openwhisk-client-go] 03/03: Changes to support review requests, change the name of the object from ApiPathParameter -> ApiParameter and drop the omitempty from requred fields.

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

csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-client-go.git

commit ad814bc98c32c65da035d6b8fa4a672bf66613e9
Author: Jesus G. Alva <ja...@us.ibm.com>
AuthorDate: Mon Nov 27 15:43:49 2017 -0600

    Changes to support review requests, change the name of the object from ApiPathParameter -> ApiParameter and drop the omitempty from requred fields.
---
 whisk/api.go | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/whisk/api.go b/whisk/api.go
index 01a4e66..6d695a6 100644
--- a/whisk/api.go
+++ b/whisk/api.go
@@ -71,12 +71,12 @@ type Api struct {
     GatewayFullPath string    `json:"gatewayFullPath,omitempty"`
     Swagger         string    `json:"swagger,omitempty"`
     Action          *ApiAction `json:"action,omitempty"`
-    PathParameters   []ApiPathParameter `json:"pathParameters,omitempty"`
+    PathParameters   []ApiParameter `json:"pathParameters,omitempty"`
 }
 
-type ApiPathParameter struct {
-    Name              string      `json:"name,omitempty"`
-    In                string      `json:"in,omitempty"`
+type ApiParameter struct {
+    Name              string      `json:"name"`
+    In                string      `json:"in"`
     Description       string      `json:"description,omitempty"`
     Required          bool        `json:"required,omitempty"`
     Type              string      `json:"type,omitempty"`
@@ -160,7 +160,7 @@ type ApiSwaggerInfo struct {
 
 type ApiSwaggerOperation struct {
     OperationId     string              `json:"operationId"`
-    Parameters      []ApiPathParameter  `json:"parameters,omitempty"`
+    Parameters      []ApiParameter  `json:"parameters,omitempty"`
     Responses       interface{}         `json:"responses"`
     XOpenWhisk      *ApiSwaggerOpXOpenWhisk `json:"x-openwhisk,omitempty"`
 }

-- 
To stop receiving notification emails like this one, please contact
"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>.