Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Pass annotation values to handler? #124

Open
memelet opened this issue Nov 27, 2016 · 1 comment
Open

Pass annotation values to handler? #124

memelet opened this issue Nov 27, 2016 · 1 comment
Labels

Comments

@memelet
Copy link

memelet commented Nov 27, 2016

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
Copy link
Author

memelet commented Nov 27, 2016

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants