REST API response for list package and get package has different definition for "binding", they should keep consistent otherwise we can't use the same model class for both API calls. #2405
REST API response for list package and get package has different definition for "binding", they should keep consistent otherwise we can't use the same model class for both API calls.
Environment details:
Bluemix OpenWhisk
Steps to reproduce the issue:
Create a package
Run wsk -v package list, this should give you a list of packages defined in the system
Run wsk -v package get <any package name> to get details of a specific package
Compare the result, you should see the attribute binding is a boolean in package list and it is an object in package detail
Provide the expected results and outputs:
The type of attribute binding needs to be consistent in both API call
REST API response for list package and get package has different definition for "binding", they should keep consistent otherwise we can't use the same model class for both API calls.
Environment details:
Bluemix OpenWhisk
Steps to reproduce the issue:
wsk -v package list
, this should give you a list of packages defined in the systemwsk -v package get <any package name>
to get details of a specific packagebinding
is a boolean in package list and it is an object in package detailProvide the expected results and outputs:
The type of attribute
binding
needs to be consistent in both API callProvide the actual results and outputs:
sample for package list
Sample for package detail