External security schema raml file


#1

How to define the OAuth 2.0 security schema as an external RAML file?

That is move the large text of the schema definition to an external file.

Basically I want to do soemthing like:
securitySchemes:
oauth_2_0: !include securitySchemes/oauth_2_0.raml


#2

Are you using RAML 1.0 or RAML 0.8? In RAML 1.0, have a look into the following example here