{"action":"created","issue":{"url":"https://api.github.com/repos/mulesoft/api-designer/issues/398","repository_url":"https://api.github.com/repos/mulesoft/api-designer","labels_url":"https://api.github.com/repos/mulesoft/api-designer/issues/398/labels{/name}","comments_url":"https://api.github.com/repos/mulesoft/api-designer/issues/398/comments","events_url":"https://api.github.com/repos/mulesoft/api-designer/issues/398/events","html_url":"https://github.com/mulesoft/api-designer/issues/398","id":161511004,"number":398,"title":"API designer continually give error for traits , traits should be in a map in RAML 1.0 when trait is defined as a map","user":{"login":"Mikey887","id":9251687,"avatar_url":"https://avatars.githubusercontent.com/u/9251687?v=3","gravatar_id":"","url":"https://api.github.com/users/Mikey887","html_url":"https://github.com/Mikey887","followers_url":"https://api.github.com/users/Mikey887/followers","following_url":"https://api.github.com/users/Mikey887/following{/other_user}","gists_url":"https://api.github.com/users/Mikey887/gists{/gist_id}","starred_url":"https://api.github.com/users/Mikey887/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mikey887/subscriptions","organizations_url":"https://api.github.com/users/Mikey887/orgs","repos_url":"https://api.github.com/users/Mikey887/repos","events_url":"https://api.github.com/users/Mikey887/events{/privacy}","received_events_url":"https://api.github.com/users/Mikey887/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-21T18:45:01Z","updated_at":"2016-06-22T17:18:24Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/mulesoft/api-designer/issues/comments/227814480","html_url":"https://github.com/mulesoft/api-designer/issues/398#issuecomment-227814480","issue_url":"https://api.github.com/repos/mulesoft/api-designer/issues/398","id":227814480,"user":{"login":"Mikey887","id":9251687,"avatar_url":"https://avatars.githubusercontent.com/u/9251687?v=3","gravatar_id":"","url":"https://api.github.com/users/Mikey887","html_url":"https://github.com/Mikey887","followers_url":"https://api.github.com/users/Mikey887/followers","following_url":"https://api.github.com/users/Mikey887/following{/other_user}","gists_url":"https://api.github.com/users/Mikey887/gists{/gist_id}","starred_url":"https://api.github.com/users/Mikey887/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mikey887/subscriptions","organizations_url":"https://api.github.com/users/Mikey887/orgs","repos_url":"https://api.github.com/users/Mikey887/repos","events_url":"https://api.github.com/users/Mikey887/events{/privacy}","received_events_url":"https://api.github.com/users/Mikey887/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T17:18:23Z","updated_at":"2016-06-22T17:18:23Z","body":"so i have api.raml with \r\n\r\n`#%RAML 1.0\r\ntitle: Raml customer context header\r\nbaseUri: https://api.dropbox.com/{version}\r\nversion: 0.1\r\ntraits:\r\n   Context:\r\n      usage: Apply this to any method that needs to be secured\r\n      description: Some requests require authentication.\r\n      headers:\r\n        CustomerContext:\r\n          properties:\r\n            customerId:\r\n              required: true\r\n              example: '1234567890'\r\n            customerType:\r\n              required: true\r\n            officialId:\r\nsecuritySchemes:\r\n  custom: !include securitySchema.raml\r\n\r\n\r\n/addresses:\r\n  get:\r\n    is: [Context]\r\n    \r\n    \r\n/phones:\r\n  get:\r\n    is: [Context]`\r\n\r\nand securitySchema.raml with\r\n`#%RAML 1.0 SecurityScheme\r\ntitle:HMAC security schema\r\n  custom_scheme:\r\n    description: A custom security scheme for authenticating requests.\r\n    type: x-HMAC\r\n    describedBy:\r\n      headers:\r\n        X-Bar-HMAC-Signature:\r\n          description: Used to send HMAC signature of the message body and headers\r\n          type: string\r\n          required: true\r\n        X-Bar-HMAC-Metadata:\r\n      responses:\r\n        401:\r\n          description: |\r\n            Bad token.ppp\r\n        403:`\r\n\r\nand either get an error that custom must be a map or \r\n![2016-06-22](https://cloud.githubusercontent.com/assets/9251687/16276302/aede30e0-38a5-11e6-85fe-b4c059378337.png)\r\n"}}
{"actor":{"display_login":"Mikey887"}}