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/26 20:27:53 UTC

[GitHub] mrutkows opened a new issue #558: Validate parameter declarations on Trigger are compatible to Action when Rule exists

mrutkows opened a new issue #558: Validate parameter declarations on Trigger are compatible to Action when Rule exists 
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/558
 
 
   If a Rule binds a Trigger to an Action, we should validate that the input parameters (names and types) are compatible with the Action they are being associated with.
   
   1) emit WARNING  (i.e., ParameterTypeMismatch) if name matches, but type does not
     - NOTE: I thought about making this an ERROR, but the Action may perform type conversion (or treat values as "string"s always). 
   2) emit a WARNING of name exists on trigger, but not on Action.
   
   For example:
   ``` 
    actions:
       hello_world_triggerrule:
         function: src/hello_plus.js
         runtime: nodejs
         inputs:
           name: string
           place: string
           children: integer
           height: float
         outputs:
           greeting: string
           details: string
   
     triggers:
       meetPerson:
         inputs:
           name: string
           place: string
           children: integer
           height: integer
   
     rules:
       meetPersonRule:
         trigger: meetPerson
         action: hello_world_triggerrule
   ```
   
   would not have a WARNING for type mismatch on the parameter "height".
 
----------------------------------------------------------------
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