{"action":"opened","issue":{"url":"https://api.github.com/repos/mulesoft/api-designer/issues/433","repository_url":"https://api.github.com/repos/mulesoft/api-designer","labels_url":"https://api.github.com/repos/mulesoft/api-designer/issues/433/labels{/name}","comments_url":"https://api.github.com/repos/mulesoft/api-designer/issues/433/comments","events_url":"https://api.github.com/repos/mulesoft/api-designer/issues/433/events","html_url":"https://github.com/mulesoft/api-designer/issues/433","id":178103676,"number":433,"title":"Additional type in auto-suggestion that should be there","user":{"login":"sichvoge","id":498114,"avatar_url":"https://avatars.githubusercontent.com/u/498114?v=3","gravatar_id":"","url":"https://api.github.com/users/sichvoge","html_url":"https://github.com/sichvoge","followers_url":"https://api.github.com/users/sichvoge/followers","following_url":"https://api.github.com/users/sichvoge/following{/other_user}","gists_url":"https://api.github.com/users/sichvoge/gists{/gist_id}","starred_url":"https://api.github.com/users/sichvoge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sichvoge/subscriptions","organizations_url":"https://api.github.com/users/sichvoge/orgs","repos_url":"https://api.github.com/users/sichvoge/repos","events_url":"https://api.github.com/users/sichvoge/events{/privacy}","received_events_url":"https://api.github.com/users/sichvoge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-20T16:03:51Z","updated_at":"2016-09-20T16:03:51Z","closed_at":null,"body":"Branch: develop\r\nMilestone: v1.0\r\n\r\n![image](https://cloud.githubusercontent.com/assets/498114/18678383/bfe9fde8-7f53-11e6-9fe9-9c0fd45df403.png)\r\n\r\nAs you can see, there is an additional `Dog` type that is not inside the scope and shouldn't be there. Could it be that it also detects things from other libraries that are referenced inside, for example, the `libraries/types/test.raml` lib?\r\n\r\nI have the following files:\r\n\r\n```yaml\r\n#%RAML 1.0\r\nbaseUri: http://ec2-52-201-242-128.compute-1.amazonaws.com/mocks/ca852da3-369b-4e78-a2a3-868453986b07\r\ntitle: test api\r\nversion: v1\r\nmediaType: application/json\r\nuses:\r\n  Test: libraries/types/test.raml\r\n\r\n/resource:\r\n  get:\r\n    responses:\r\n      200:\r\n        body: \r\n/humans:\r\n  description: collection of humands\r\n  get:\r\n    responses:\r\n      200:\r\n        body:\r\n          type: Test.Anyone[]\r\n          example:\r\n            - name: John Smith\r\n            - name: Aaron Morrison\r\n            - name: Kristen Perkins\r\n            - name: Patrick Meyer\r\n  \r\n/human/{id}:\r\n  uriParameters:\r\n    id: \r\n      type: integer\r\n      example: 1234\r\n  description: a human\r\n  get:\r\n    responses:\r\n      200:\r\n        body:\r\n          type: Test.Anyone\r\n          example:\r\n            name: Bob Smith\r\n  patch:\r\n   body:\r\n      type: Test.Anyone      \r\n  post:\r\n    body:\r\n      type: Test.Anyone\r\n```\r\n\r\n```yaml\r\n#%RAML 1.0 Library\r\n# file name: libraries/types/test.raml\r\n\r\nuses:\r\n  lib: testlib.raml\r\n\r\ntypes:\r\n  MyDog: \r\n    type: lib.Dog\r\n    properties: \r\n      myproperty: string\r\n  Person:\r\n    type: object\r\n    properties:\r\n      name: string\r\n      age?: integer\r\n      gender?: string\r\n      birthDate?: date-only\r\n  Employee:\r\n    type: object\r\n    properties:\r\n      employeeNr?: integer\r\n  Teacher:\r\n    type: object\r\n    properties:\r\n      preferredSubject?: string\r\n  Anyone:\r\n    type: [ Person, Employee, Teacher ]\r\n```\r\n\r\n```yaml\r\n#%RAML 1.0 Library\r\n# file name: libraries/types/testlib.raml\r\n\r\ntypes:\r\n  Dog: \r\n    properties: \r\n      bark: boolean\r\n```"}}
{"actor":{"display_login":"sichvoge"}}