janrain / raml-fleece

Tool for converting RAML to HTML documentation
MIT License
9 stars 2 forks source link

Render securedBy #3

Closed byron-janrain closed 9 years ago

byron-janrain commented 9 years ago

securedBy does not get rendered.

get:
  description: Get identity data (including logged-in status) for this session
  securedBy: [signature,jwt]
ghost commented 9 years ago

In the future, could you please submit the minimal working example to demonstrate the problem, that way I don't have to build a RAML file to exercise each new feature?

byron-janrain commented 9 years ago

Good call, i'll update my other issues with working RAML here's one that uses multiple security schemes

#%RAML 0.8
title: Minimal RAML
securitySchemes:
  - customappscheme:
      description: an application wide security mechanism
      type: x-header
      describedBy:
        headers:
          Authorization:
            description: magic secrets.
        responses:
          401:
            description: bad secret!
  - customappscheme2:
      description: an endpoint specific security mechanism
      type: x-header
      describedBy:
        headers:
          Authorization:
            description: magic secrets.
        responses:
          401:
            description: bad secret!

/:
  get:
    securedBy: [ customappscheme2, customappscheme ]