pritidesai commented on issue #742: Add top level package definition and it 
ignores packages
URL: 
https://github.com/apache/incubator-openwhisk-wskdeploy/issues/742#issuecomment-368632034
 
 
   With @mrutkows recent changes, top level `package` definition is now not 
supported and reported as fatal error:
   
   `manifest.yaml`:
   
   ```
   package:
       name: test
   packages:
     IntegrationTestHelloWorld:
         actions:
           # helloworld action in NodeJS
           helloNodejs:
             function: actions/hello.js
             runtime: nodejs:6
             inputs:
               name:
                 type: string
                 description: name of a person
               place:
                 type: string
                 description: location of a person
             outputs:
               payload:
                 type: string
                 description: a simple greeting message, Hello World!
   ```
   
   ```
   ./wskdeploy -m manifest.yaml 
   Info: The API host is [openwhisk.ng.bluemix.net], from .wskprops.
   Info: The auth key is set, from .wskprops.
   Info: The namespace is [_], from .wskprops.
   Info: The apigw access token is set, from .wskprops.
   Info: Unmarshal OpenWhisk runtimes from internet at 
https://openwhisk.ng.bluemix.net.
   Error: manifest_parser.go [104]: [ERROR_YAML_PARSER_ERROR]: File: 
[manifest.yaml]: 
   ==> yaml: unmarshal errors:
   ==> line 17: field package not found in struct parsers.YAML
   ```
   
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to