{"action":"opened","issue":{"url":"https://api.github.com/repos/raml-org/raml-spec/issues/370","repository_url":"https://api.github.com/repos/raml-org/raml-spec","labels_url":"https://api.github.com/repos/raml-org/raml-spec/issues/370/labels{/name}","comments_url":"https://api.github.com/repos/raml-org/raml-spec/issues/370/comments","events_url":"https://api.github.com/repos/raml-org/raml-spec/issues/370/events","html_url":"https://github.com/raml-org/raml-spec/issues/370","id":146920918,"number":370,"title":"Clarify array types to be a valid definition for `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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-08T12:48:16Z","updated_at":"2016-04-08T12:48:16Z","closed_at":null,"body":"Currently the spec not clearly states that `array` is a valid value for a `type` node. Its basically just stating that one can define an array type by using the array qualifier at the end of a type expression.\r\n\r\nSo following are both valid examples:\r\n\r\n```yaml\r\ntypes:\r\n  Email:\r\n    type: object\r\n    properties:\r\n      name:\r\n        type: string\r\n  emails:\r\n    type: Email[]\r\n    minItems: 1\r\n    uniqueItems: true\r\n```\r\n\r\n```yaml\r\ntypes:\r\n  Email:\r\n    type: object\r\n    properties:\r\n      name:\r\n        type: string\r\n  emails:\r\n    type: array\r\n    items: Email\r\n    minItems: 1\r\n    uniqueItems: true \r\n```"}}