You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/05/29 19:48:07 UTC

[GitHub] [incubator-openwhisk] kiran002 edited a comment on issue #3401: Consolidate action annotation constants

kiran002 edited a comment on issue #3401: Consolidate action annotation constants
URL: https://github.com/apache/incubator-openwhisk/issues/3401#issuecomment-497083044
 
 
   @rabbah 
   Before i go all out and implement these changes, I wanted to get some feedback from you guys, So my idea is to have an annotations object
   ```
   object Annotations {
     val FinalParamsAnnotationName = "final"
     val WebActionAnnotationName = "web-export"
     val WebCustomOptionsAnnotationName = "web-custom-options"
     val RawHttpAnnotationName = "raw-http"
     val RequireWhiskAuthAnnotation = "require-whisk-auth"
     val ProvideApiKeyAnnotationName = "provide-api-key"
   
     def toJSON(): JsValue = ??? 
   }
   ```
   and i intend to change all instances of 
   
   ```
    annotations = Map(WhiskAction.provideApiKeyAnnotationName -> JsBoolean(true)))
   ```
   to
   ```
    annotations = Map(Annotations.ProvideApiKeyAnnotationName -> JsBoolean(true)))
   ```
   
   Am i heading in the right direction here?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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