{"action":"opened","issue":{"url":"https://api.github.com/repos/ePages-de/raml_parser/issues/2","labels_url":"https://api.github.com/repos/ePages-de/raml_parser/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ePages-de/raml_parser/issues/2/comments","events_url":"https://api.github.com/repos/ePages-de/raml_parser/issues/2/events","html_url":"https://github.com/ePages-de/raml_parser/issues/2","id":57704400,"number":2,"title":"Mixed in resource type method has method type null","user":{"login":"choffmeister","id":671620,"avatar_url":"https://avatars.githubusercontent.com/u/671620?v=3","gravatar_id":"","url":"https://api.github.com/users/choffmeister","html_url":"https://github.com/choffmeister","followers_url":"https://api.github.com/users/choffmeister/followers","following_url":"https://api.github.com/users/choffmeister/following{/other_user}","gists_url":"https://api.github.com/users/choffmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/choffmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choffmeister/subscriptions","organizations_url":"https://api.github.com/users/choffmeister/orgs","repos_url":"https://api.github.com/users/choffmeister/repos","events_url":"https://api.github.com/users/choffmeister/events{/privacy}","received_events_url":"https://api.github.com/users/choffmeister/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ePages-de/raml_parser/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"choffmeister","id":671620,"avatar_url":"https://avatars.githubusercontent.com/u/671620?v=3","gravatar_id":"","url":"https://api.github.com/users/choffmeister","html_url":"https://github.com/choffmeister","followers_url":"https://api.github.com/users/choffmeister/followers","following_url":"https://api.github.com/users/choffmeister/following{/other_user}","gists_url":"https://api.github.com/users/choffmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/choffmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choffmeister/subscriptions","organizations_url":"https://api.github.com/users/choffmeister/orgs","repos_url":"https://api.github.com/users/choffmeister/repos","events_url":"https://api.github.com/users/choffmeister/events{/privacy}","received_events_url":"https://api.github.com/users/choffmeister/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-02-14T19:51:39Z","updated_at":"2015-02-14T19:51:39Z","closed_at":null,"body":"~~~ yaml\r\n#%RAML 0.8\r\n---\r\ntitle: GitHub API\r\nbaseUri: https://api.github.com\r\nversion: v3\r\ntraits:\r\n  - base:\r\n      responses:\r\n        404:\r\n          description: Not found\r\n          body:\r\n            application/json:\r\n              example: |\r\n                {\r\n                  \"status_code\": 404,\r\n                  \"message\": \"Not found\"\r\n                }\r\n        500:\r\n          description: Internal server error\r\n          body:\r\n            application/json:\r\n              example: |\r\n                {\r\n                  \"status_code\": 500,\r\n                  \"message\": \"Internal server error\"\r\n                }\r\nresourceTypes:\r\n  - collection:\r\n      post:\r\n        responses:\r\n          404:\r\n            description: Not found\r\n            body:\r\n              application/json:\r\n                example: |\r\n                  {\r\n                    \"status_code\": 404,\r\n                    \"message\": \"Not found\"\r\n                  }\r\n          500:\r\n            description: Internal server error\r\n            body:\r\n              application/json:\r\n                example: |\r\n                  {\r\n                    \"status_code\": 500,\r\n                    \"message\": \"Internal server error\"\r\n                  }\r\n/users/{username}:\r\n  type: collection\r\n  get:\r\n~~~\r\n\r\n~~~ ruby\r\nparser = RamlParser::Parser.new\r\nraml = parser.parse_file('bug.raml')\r\n\r\nexpect(raml.resources[0].methods['get'].method).to eq 'GET'\r\nexpect(raml.resources[0].methods['post'].method).to eq 'POST' # <--- FAILS, is nil\r\n~~~"}}