I’ve become interested in following RAML, but got stuck with a specific scenario in which I’d like to describe a JSON Web Token security design for services and use RAML2HTML. I’ve referenced the 0.8 Security section under the specification, but I haven’t had success using the other securityScheme type yet. Below is where I’ve taken the notes example partially and simply added a securitySchemes section. I’ve tried different variations starting with customHeader as described in the specification, but could only get the parser to work by removing the securitySchemes section and securedBy for the user get. Would anybody else have successfully described another security design using something other than OAuth 1.0 or OAuth 2.0? I’m not sure if this could be a valid raml-js-parser issue or how I’m creating the RAML just yet.
title: Notes Example API
- title: Overview
content: This is an example of a simple API for a “notes” service
description: A custom
description: Retrieve all the active users