osprey icon indicating copy to clipboard operation
osprey copied to clipboard

Pass annotation values to handler?

Open memelet opened this issue 8 years ago • 1 comments

Is there anyway to pass annotation values to a handler? eg,

annotationTypes:
  permissions:
    type: string

/users:
  get:
    (permissions): 'foo:bar'
    queryParameters:
      sort:
        enum: [username, name]

The application middleware needs the required permissions value to validate against the JWT.

memelet avatar Nov 27 '16 15:11 memelet

Hmm, from what I can tell the annotation types are parsed and added to 'raml' along with the resource definitions, but the actual annotation values are dropped on the floor. No?

memelet avatar Nov 27 '16 16:11 memelet