{"action":"closed","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/2816","repository_url":"https://api.github.com/repos/strongloop/loopback","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/2816/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/2816/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/2816/events","html_url":"https://github.com/strongloop/loopback/issues/2816","id":180936046,"number":2816,"title":"A model with a required property of `array` type can't have empty array as a value","user":{"login":"sundeepgupta","id":2365037,"avatar_url":"https://avatars.githubusercontent.com/u/2365037?v=3","gravatar_id":"","url":"https://api.github.com/users/sundeepgupta","html_url":"https://github.com/sundeepgupta","followers_url":"https://api.github.com/users/sundeepgupta/followers","following_url":"https://api.github.com/users/sundeepgupta/following{/other_user}","gists_url":"https://api.github.com/users/sundeepgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/sundeepgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sundeepgupta/subscriptions","organizations_url":"https://api.github.com/users/sundeepgupta/orgs","repos_url":"https://api.github.com/users/sundeepgupta/repos","events_url":"https://api.github.com/users/sundeepgupta/events{/privacy}","received_events_url":"https://api.github.com/users/sundeepgupta/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback/labels/question","name":"question","color":"eeeeee"},{"url":"https://api.github.com/repos/strongloop/loopback/labels/workspace-generator","name":"workspace-generator","color":"eeeeee"}],"state":"closed","locked":false,"assignee":{"login":"jannyHou","id":12554153,"avatar_url":"https://avatars.githubusercontent.com/u/12554153?v=3","gravatar_id":"","url":"https://api.github.com/users/jannyHou","html_url":"https://github.com/jannyHou","followers_url":"https://api.github.com/users/jannyHou/followers","following_url":"https://api.github.com/users/jannyHou/following{/other_user}","gists_url":"https://api.github.com/users/jannyHou/gists{/gist_id}","starred_url":"https://api.github.com/users/jannyHou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jannyHou/subscriptions","organizations_url":"https://api.github.com/users/jannyHou/orgs","repos_url":"https://api.github.com/users/jannyHou/repos","events_url":"https://api.github.com/users/jannyHou/events{/privacy}","received_events_url":"https://api.github.com/users/jannyHou/received_events","type":"User","site_admin":false},"assignees":[{"login":"jannyHou","id":12554153,"avatar_url":"https://avatars.githubusercontent.com/u/12554153?v=3","gravatar_id":"","url":"https://api.github.com/users/jannyHou","html_url":"https://github.com/jannyHou","followers_url":"https://api.github.com/users/jannyHou/followers","following_url":"https://api.github.com/users/jannyHou/following{/other_user}","gists_url":"https://api.github.com/users/jannyHou/gists{/gist_id}","starred_url":"https://api.github.com/users/jannyHou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jannyHou/subscriptions","organizations_url":"https://api.github.com/users/jannyHou/orgs","repos_url":"https://api.github.com/users/jannyHou/repos","events_url":"https://api.github.com/users/jannyHou/events{/privacy}","received_events_url":"https://api.github.com/users/jannyHou/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-10-04T16:04:22Z","updated_at":"2016-10-17T16:30:15Z","closed_at":"2016-10-17T16:30:15Z","body":"```json\r\n    \"times\": {\r\n      \"type\": \"array\",\r\n      \"required\": \"true\",\r\n      \"default\": []\r\n    },\r\n```\r\n\r\nWhen creating a model with a property like this and without specifying a value for `times`, I get a validation error. Is this expected?  I would thing empty array is a valid value. "}}
{"actor":{"display_login":"sundeepgupta"}}