raml-org / raml-tck

Test Compatibility Kit for RAML 1.0
http://raml-org.github.io/raml-tck/
8 stars 10 forks source link

securedBy is diff between 0.8 and 1.0 for anonymous schema (null) #32

Closed xaka closed 8 years ago

xaka commented 8 years ago

RAML:

#%RAML 0.8
title: My API
baseUri: http://localhost:9000
securitySchemes:
  - oauth_2_0:
      type: OAuth 2.0
      describedBy:
        headers:
          Authorization:
            type: string
        queryParameters:
          access_token:
            type: string
        responses:
          404:
            description: Unauthorized
      settings:
        authorizationUri: https://acme.com/login/oauth/authorize
        accessTokenUri: https://acme.com/login/oauth/access_token
        authorizationGrants: [ code ]
securedBy: [ null, oauth_2_0 ]
/resources:
 get:

RAML 0.8 JSON:

  "securedBy": [
    null,
    "oauth_2_0"
  ],

RAML 1.0 JSON:

  "securedBy": [
    "null",
    "oauth_2_0"
  ],