{"action":"created","issue":{"url":"https://api.github.com/repos/raml-org/raml-java-parser/issues/128","repository_url":"https://api.github.com/repos/raml-org/raml-java-parser","labels_url":"https://api.github.com/repos/raml-org/raml-java-parser/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/raml-org/raml-java-parser/issues/128/comments","events_url":"https://api.github.com/repos/raml-org/raml-java-parser/issues/128/events","html_url":"https://github.com/raml-org/raml-java-parser/issues/128","id":162695366,"number":128,"title":"[TCK] TC007 Types - Change message when an array is invalid","user":{"login":"eleonoraortega","id":5630419,"avatar_url":"https://avatars.githubusercontent.com/u/5630419?v=3","gravatar_id":"","url":"https://api.github.com/users/eleonoraortega","html_url":"https://github.com/eleonoraortega","followers_url":"https://api.github.com/users/eleonoraortega/followers","following_url":"https://api.github.com/users/eleonoraortega/following{/other_user}","gists_url":"https://api.github.com/users/eleonoraortega/gists{/gist_id}","starred_url":"https://api.github.com/users/eleonoraortega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eleonoraortega/subscriptions","organizations_url":"https://api.github.com/users/eleonoraortega/orgs","repos_url":"https://api.github.com/users/eleonoraortega/repos","events_url":"https://api.github.com/users/eleonoraortega/events{/privacy}","received_events_url":"https://api.github.com/users/eleonoraortega/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"svacas","id":557476,"avatar_url":"https://avatars.githubusercontent.com/u/557476?v=3","gravatar_id":"","url":"https://api.github.com/users/svacas","html_url":"https://github.com/svacas","followers_url":"https://api.github.com/users/svacas/followers","following_url":"https://api.github.com/users/svacas/following{/other_user}","gists_url":"https://api.github.com/users/svacas/gists{/gist_id}","starred_url":"https://api.github.com/users/svacas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svacas/subscriptions","organizations_url":"https://api.github.com/users/svacas/orgs","repos_url":"https://api.github.com/users/svacas/repos","events_url":"https://api.github.com/users/svacas/events{/privacy}","received_events_url":"https://api.github.com/users/svacas/received_events","type":"User","site_admin":false},"assignees":[{"login":"svacas","id":557476,"avatar_url":"https://avatars.githubusercontent.com/u/557476?v=3","gravatar_id":"","url":"https://api.github.com/users/svacas","html_url":"https://github.com/svacas","followers_url":"https://api.github.com/users/svacas/followers","following_url":"https://api.github.com/users/svacas/following{/other_user}","gists_url":"https://api.github.com/users/svacas/gists{/gist_id}","starred_url":"https://api.github.com/users/svacas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svacas/subscriptions","organizations_url":"https://api.github.com/users/svacas/orgs","repos_url":"https://api.github.com/users/svacas/repos","events_url":"https://api.github.com/users/svacas/events{/privacy}","received_events_url":"https://api.github.com/users/svacas/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-06-28T14:10:03Z","updated_at":"2016-06-28T14:39:23Z","closed_at":null,"body":"When elements of an array are from different type as the following example:\r\n```yaml\r\n#%RAML 1.0\r\ntitle: API\r\n\r\ntypes:\r\n  SimpleUnion:\r\n    type: string[] | number[]\r\n\r\n  TypeWithUnionProps:\r\n    type: object\r\n    properties:\r\n      unionArray1: SimpleUnion\r\n      unionArray2: SimpleUnion\r\n    example:\r\n      unionArray1: [blah, 2, 3]\r\n      unionArray2: [blah, blah, blah]\r\n```\r\n**Actual result:**\r\nA list of all elements arbitrarily considered invalid are displayed:\r\n\r\n- Invalid array element 2. [line=14, col=27]\r\n\r\n- Invalid array element 3. [line=14, col=30]\r\n\r\n**Expected result**\r\n\r\nDisplay a message saying that the array is invalid or that the elements of the array are not valid, but do not list them"},"comment":{"url":"https://api.github.com/repos/raml-org/raml-java-parser/issues/comments/229069529","html_url":"https://github.com/raml-org/raml-java-parser/issues/128#issuecomment-229069529","issue_url":"https://api.github.com/repos/raml-org/raml-java-parser/issues/128","id":229069529,"user":{"login":"eleonoraortega","id":5630419,"avatar_url":"https://avatars.githubusercontent.com/u/5630419?v=3","gravatar_id":"","url":"https://api.github.com/users/eleonoraortega","html_url":"https://github.com/eleonoraortega","followers_url":"https://api.github.com/users/eleonoraortega/followers","following_url":"https://api.github.com/users/eleonoraortega/following{/other_user}","gists_url":"https://api.github.com/users/eleonoraortega/gists{/gist_id}","starred_url":"https://api.github.com/users/eleonoraortega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eleonoraortega/subscriptions","organizations_url":"https://api.github.com/users/eleonoraortega/orgs","repos_url":"https://api.github.com/users/eleonoraortega/repos","events_url":"https://api.github.com/users/eleonoraortega/events{/privacy}","received_events_url":"https://api.github.com/users/eleonoraortega/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T14:39:23Z","updated_at":"2016-06-28T14:39:23Z","body":"We are assuming one case is wrong (numbers in this example) and the other is right (string elements). But this is a union type and both numbers and strings are correct. When you have an array with more then ten elements is not that easy to read all the list. Therefore, to specify the elements is not useful"}}
{"actor":{"display_login":"eleonoraortega"}}