{"action":"created","issue":{"url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/462","labels_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/462/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/462/comments","events_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/462/events","html_url":"https://github.com/aldeed/meteor-simple-schema/issues/462","id":107963542,"number":462,"title":"Validator not working on sub-schema","user":{"login":"medihack","id":120626,"avatar_url":"https://avatars.githubusercontent.com/u/120626?v=3","gravatar_id":"","url":"https://api.github.com/users/medihack","html_url":"https://github.com/medihack","followers_url":"https://api.github.com/users/medihack/followers","following_url":"https://api.github.com/users/medihack/following{/other_user}","gists_url":"https://api.github.com/users/medihack/gists{/gist_id}","starred_url":"https://api.github.com/users/medihack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medihack/subscriptions","organizations_url":"https://api.github.com/users/medihack/orgs","repos_url":"https://api.github.com/users/medihack/repos","events_url":"https://api.github.com/users/medihack/events{/privacy}","received_events_url":"https://api.github.com/users/medihack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-23T17:03:32Z","updated_at":"2015-11-12T23:11:30Z","closed_at":null,"body":"I attached a custom validator to a sub-schema. Unfortunately it is never called when submitting a form.\r\nBut it seems to be supported in the UI of autoform. The sub-schema is shown with afQuickField inside a bootstrap panel (when using autoform-bootstrap). When I attach the validator to the main schema and return an error message then the error message is shown right under the panel header (beside various other places). So it would make sense to attach a validator to a sub-schema and use that panel error field when a sub-schema error occurs."},"comment":{"url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/comments/156266360","html_url":"https://github.com/aldeed/meteor-simple-schema/issues/462#issuecomment-156266360","issue_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/462","id":156266360,"user":{"login":"aldeed","id":3012067,"avatar_url":"https://avatars.githubusercontent.com/u/3012067?v=3","gravatar_id":"","url":"https://api.github.com/users/aldeed","html_url":"https://github.com/aldeed","followers_url":"https://api.github.com/users/aldeed/followers","following_url":"https://api.github.com/users/aldeed/following{/other_user}","gists_url":"https://api.github.com/users/aldeed/gists{/gist_id}","starred_url":"https://api.github.com/users/aldeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldeed/subscriptions","organizations_url":"https://api.github.com/users/aldeed/orgs","repos_url":"https://api.github.com/users/aldeed/repos","events_url":"https://api.github.com/users/aldeed/events{/privacy}","received_events_url":"https://api.github.com/users/aldeed/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T23:11:30Z","updated_at":"2015-11-12T23:11:30Z","body":"Yeah, currently subschemas are merged into the topmost schema in the constructor and cease to be separate schemas. We could and probably should eventually keep them distinct and cascade down as necessary, but it is a bit of a can of worms. Will keep this open to fix eventually."}}