{"action":"opened","issue":{"url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/593","labels_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/593/labels{/name}","comments_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/593/comments","events_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/593/events","html_url":"https://github.com/Textalk/angular-schema-form/issues/593","id":116657349,"number":593,"title":"Array $validators are not supported?","user":{"login":"fyodorvi","id":9676134,"avatar_url":"https://avatars.githubusercontent.com/u/9676134?v=3","gravatar_id":"","url":"https://api.github.com/users/fyodorvi","html_url":"https://github.com/fyodorvi","followers_url":"https://api.github.com/users/fyodorvi/followers","following_url":"https://api.github.com/users/fyodorvi/following{/other_user}","gists_url":"https://api.github.com/users/fyodorvi/gists{/gist_id}","starred_url":"https://api.github.com/users/fyodorvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyodorvi/subscriptions","organizations_url":"https://api.github.com/users/fyodorvi/orgs","repos_url":"https://api.github.com/users/fyodorvi/repos","events_url":"https://api.github.com/users/fyodorvi/events{/privacy}","received_events_url":"https://api.github.com/users/fyodorvi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-12T22:36:05Z","updated_at":"2015-11-12T22:36:05Z","closed_at":null,"body":"$validators do not seem to work for arrays.\r\n\r\nSample schema:\r\n```\r\n{\r\n    \"type\": \"object\",\r\n    \"properties\": {\r\n        \"arr\": {\r\n            \"title\": \"Array\",\r\n            \"type\": \"array\",\r\n            \"items\": {\r\n                \"type\": \"object\",\r\n                \"properties\": {\r\n                    \"name\": {\r\n                      \"title\": \"Name\",\r\n                      \"type\": \"string\"\r\n                    }\r\n                }\r\n            }  \r\n        }\r\n    }\r\n}\r\n```\r\n\r\nSample form:\r\n```\r\n[\r\n  {\r\n      \"key\": \"arr\",\r\n      \"validationMessage\": {\r\n        \"atLeastTwo\": \"Please add at least two options\"\r\n        }\r\n        $validators: {\r\n            atLeastTwo: function (value) {\r\n                debugger\r\n                return value?.length > 1\r\n            }\r\n        }\r\n  }\r\n]\r\n```\r\n\r\nIs there some workaround for this?"}}