{"action":"closed","issue":{"url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/644","repository_url":"https://api.github.com/repos/raml-org/raml-js-parser-2","labels_url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/644/labels{/name}","comments_url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/644/comments","events_url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/644/events","html_url":"https://github.com/raml-org/raml-js-parser-2/issues/644","id":207079704,"number":644,"title":"items facet in array's should only be a reference or inline type","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":[{"id":279347815,"url":"https://api.github.com/repos/raml-org/raml-js-parser-2/labels/bug","name":"bug","color":"fc2929","default":true},{"id":291519328,"url":"https://api.github.com/repos/raml-org/raml-js-parser-2/labels/Major","name":"Major","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":{"login":"KonstantinSviridov","id":6206034,"avatar_url":"https://avatars.githubusercontent.com/u/6206034?v=3","gravatar_id":"","url":"https://api.github.com/users/KonstantinSviridov","html_url":"https://github.com/KonstantinSviridov","followers_url":"https://api.github.com/users/KonstantinSviridov/followers","following_url":"https://api.github.com/users/KonstantinSviridov/following{/other_user}","gists_url":"https://api.github.com/users/KonstantinSviridov/gists{/gist_id}","starred_url":"https://api.github.com/users/KonstantinSviridov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KonstantinSviridov/subscriptions","organizations_url":"https://api.github.com/users/KonstantinSviridov/orgs","repos_url":"https://api.github.com/users/KonstantinSviridov/repos","events_url":"https://api.github.com/users/KonstantinSviridov/events{/privacy}","received_events_url":"https://api.github.com/users/KonstantinSviridov/received_events","type":"User","site_admin":false},"assignees":[{"login":"KonstantinSviridov","id":6206034,"avatar_url":"https://avatars.githubusercontent.com/u/6206034?v=3","gravatar_id":"","url":"https://api.github.com/users/KonstantinSviridov","html_url":"https://github.com/KonstantinSviridov","followers_url":"https://api.github.com/users/KonstantinSviridov/followers","following_url":"https://api.github.com/users/KonstantinSviridov/following{/other_user}","gists_url":"https://api.github.com/users/KonstantinSviridov/gists{/gist_id}","starred_url":"https://api.github.com/users/KonstantinSviridov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KonstantinSviridov/subscriptions","organizations_url":"https://api.github.com/users/KonstantinSviridov/orgs","repos_url":"https://api.github.com/users/KonstantinSviridov/repos","events_url":"https://api.github.com/users/KonstantinSviridov/events{/privacy}","received_events_url":"https://api.github.com/users/KonstantinSviridov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-02-12T21:17:04Z","updated_at":"2017-02-14T10:53:05Z","closed_at":"2017-02-14T10:53:05Z","body":"The specification states that the value of items is either a reference to an existing type or an inline type declaration. So the following shouldn't be valid, but the parser does not complain:\r\n\r\n```yaml\r\ntypes:\r\n  Foo:\r\n  Bar:\r\n  FooBarArray:\r\n    type: array\r\n    items: [ Foo, Bar ]\r\n```\r\n\r\nI added a test to our TCK [here](https://github.com/raml-org/raml-tck/blob/master/tests/raml-1.0/Types/ArrayTypes/itemsInvalidTypeTest/input.raml).\r\n\r\nWe still discuss what happens in cases like `items: Foo | Bar`."}}
{"actor":{"display_login":"KonstantinSviridov"}}