{"action":"created","issue":{"url":"https://api.github.com/repos/tacoss/raml-mockup/issues/11","repository_url":"https://api.github.com/repos/tacoss/raml-mockup","labels_url":"https://api.github.com/repos/tacoss/raml-mockup/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/tacoss/raml-mockup/issues/11/comments","events_url":"https://api.github.com/repos/tacoss/raml-mockup/issues/11/events","html_url":"https://github.com/tacoss/raml-mockup/issues/11","id":126386120,"number":11,"title":"Support of resourceTypes?","user":{"login":"silvermind","id":125677,"avatar_url":"https://avatars1.githubusercontent.com/u/125677?v=4","gravatar_id":"","url":"https://api.github.com/users/silvermind","html_url":"https://github.com/silvermind","followers_url":"https://api.github.com/users/silvermind/followers","following_url":"https://api.github.com/users/silvermind/following{/other_user}","gists_url":"https://api.github.com/users/silvermind/gists{/gist_id}","starred_url":"https://api.github.com/users/silvermind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvermind/subscriptions","organizations_url":"https://api.github.com/users/silvermind/orgs","repos_url":"https://api.github.com/users/silvermind/repos","events_url":"https://api.github.com/users/silvermind/events{/privacy}","received_events_url":"https://api.github.com/users/silvermind/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-01-13T10:19:57Z","updated_at":"2017-09-30T13:52:29Z","closed_at":null,"author_association":"NONE","body":"Hi all\n\nDo you support using resourceTypes in external Files? Have some strange behaviour during raml-mockup server startup..\n\nI'll get this error when trying to start the server:\n\n> empty JSON string on GET /bar/{Id}\n\nthis definition works:\n\n```\n/foo:\n  get:\n    description: Simple Get Endpoint\n    responses:\n        \"200\":\n            description: successful operation\n            body:\n                application/json:\n                    schema: MyModel\n```\n\nthis does not:\n\n```\nresourceTypes: !include resourceTypes.yaml\n/bar/{Id}:\n    type:\n      collection-item:\n        exampleItem: !include ./example.my_model.json\n        schemaItem: MyModel\n```\n\ncontent of resourceTypes.yaml:\n\n```\n\n- collection-item:\n    description: Entity representing a <<resourcePathName|!singularize>>\n    get:\n      description: |\n        Get the <<resourcePathName|!singularize>>\n        with <<resourcePathName|!singularize>>Id =\n        {<<resourcePathName|!singularize>>Id}\n      responses:\n        200:\n          body:\n            application/json:\n              schema: <<schemaItem>>\n              example: <<exampleItem>>\n        404:\n          body:\n            application/json:\n              example: |\n                {\"message\": \"<<resourcePathName|!singularize>> not found\" }\n```\n"},"comment":{"url":"https://api.github.com/repos/tacoss/raml-mockup/issues/comments/333309955","html_url":"https://github.com/tacoss/raml-mockup/issues/11#issuecomment-333309955","issue_url":"https://api.github.com/repos/tacoss/raml-mockup/issues/11","id":333309955,"user":{"login":"DrummerKH","id":6223175,"avatar_url":"https://avatars0.githubusercontent.com/u/6223175?v=4","gravatar_id":"","url":"https://api.github.com/users/DrummerKH","html_url":"https://github.com/DrummerKH","followers_url":"https://api.github.com/users/DrummerKH/followers","following_url":"https://api.github.com/users/DrummerKH/following{/other_user}","gists_url":"https://api.github.com/users/DrummerKH/gists{/gist_id}","starred_url":"https://api.github.com/users/DrummerKH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrummerKH/subscriptions","organizations_url":"https://api.github.com/users/DrummerKH/orgs","repos_url":"https://api.github.com/users/DrummerKH/repos","events_url":"https://api.github.com/users/DrummerKH/events{/privacy}","received_events_url":"https://api.github.com/users/DrummerKH/received_events","type":"User","site_admin":false},"created_at":"2017-09-30T13:52:29Z","updated_at":"2017-09-30T13:52:29Z","author_association":"NONE","body":"Hello, any news?"}}
{"actor":{"display_login":"DrummerKH"}}