You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/09/20 07:14:33 UTC

[GitHub] daisy-ycguo opened a new pull request #522: Check mandatory field Version and License

daisy-ycguo opened a new pull request #522: Check mandatory field Version and License
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/pull/522
 
 
   Closes #507 
   Closes #508 
   
   This PR will check the mandatory field "Version" and "License". If they are not exist, it will print an warning message and set a default value.
   
   Design discussion needed: There is no corresponding field in OpenWhisk Package entity called License. So I used an annotation instead. Refer below:
   ```
   ok: got package helloWorldTriggerRule
   {
       "namespace": "guoyingc@cn.ibm.com_dev",
       "name": "helloWorldTriggerRule",
       "version": "0.0.2",
       "publish": false,
       "annotations": [
           {
               "key": "License",
               "value": "unknown"
           }
       ],
       "binding": {},
       "actions": [
           {
               "name": "greeting",
               "version": "0.0.1",
               "annotations": [
                   {
                       "key": "exec",
                       "value": "nodejs:6"
                   }
               ]
           }
       ]
   }
   ```
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services