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


With regards,
Apache Git Services

Reply via email to