{"action":"created","issue":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3027","labels_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3027/labels{/name}","comments_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3027/comments","events_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3027/events","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/3027","id":106427766,"number":3027,"title":"[Form Validation] Support Both Old and New Syntax Mixed","user":{"login":"brajt","id":4461349,"avatar_url":"https://avatars.githubusercontent.com/u/4461349?v=3","gravatar_id":"","url":"https://api.github.com/users/brajt","html_url":"https://github.com/brajt","followers_url":"https://api.github.com/users/brajt/followers","following_url":"https://api.github.com/users/brajt/following{/other_user}","gists_url":"https://api.github.com/users/brajt/gists{/gist_id}","starred_url":"https://api.github.com/users/brajt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brajt/subscriptions","organizations_url":"https://api.github.com/users/brajt/orgs","repos_url":"https://api.github.com/users/brajt/repos","events_url":"https://api.github.com/users/brajt/events{/privacy}","received_events_url":"https://api.github.com/users/brajt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/labels/Enhancement","name":"Enhancement","color":"219a90"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-14T21:04:27Z","updated_at":"2015-09-15T08:15:49Z","closed_at":null,"body":"First of all, I'd like to thank you for an amazing shorthand syntax for Form Validation, that makes working with Semantic UI much more of a pleasure.\r\n\r\nUnfortunately what seems for me to be broken is the use of full and shorthand syntax together. In cases of long form where we just want to change one of prompts (f.e. for regexp to state which signs are valid), it forces us to use old syntax all the way.\r\n\r\nIs there a possibility to do that? Or maybe I just didn't notice something?\r\n\r\n*Tested on Semantic UI package for Meteor, of course updated to 2.1.4*\r\n\r\n```\r\n  fields: {\r\n    password: ['minLength[5]', 'empty'],\r\n    email: 'email',\r\n    username: {\r\n      identifier: 'username',\r\n      rules: [\r\n        {\r\n          type: 'empty',\r\n          prompt: 'Somehow this isn`t working'\r\n        }\r\n      ]\r\n    }\r\n  }\r\n```\r\n\r\nError message in console:\r\n```\r\n\"Form:\" \"There is no rule matching the one you specified\" \"username\"\r\nTypeError: rule.type.match is not a function\r\n```"},"comment":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/comments/140316600","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/3027#issuecomment-140316600","issue_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3027","id":140316600,"user":{"login":"brajt","id":4461349,"avatar_url":"https://avatars.githubusercontent.com/u/4461349?v=3","gravatar_id":"","url":"https://api.github.com/users/brajt","html_url":"https://github.com/brajt","followers_url":"https://api.github.com/users/brajt/followers","following_url":"https://api.github.com/users/brajt/following{/other_user}","gists_url":"https://api.github.com/users/brajt/gists{/gist_id}","starred_url":"https://api.github.com/users/brajt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brajt/subscriptions","organizations_url":"https://api.github.com/users/brajt/orgs","repos_url":"https://api.github.com/users/brajt/repos","events_url":"https://api.github.com/users/brajt/events{/privacy}","received_events_url":"https://api.github.com/users/brajt/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T08:15:49Z","updated_at":"2015-09-15T08:15:49Z","body":"Thanks for a fast, clarifying answer. As for the enhancement, imho something like that would be perfect, if possible.\r\n\r\n  fields: {\r\n    password: ['minLength[5]', 'empty', {'myRule', 'myPrompt'}]\r\n  }\r\n\r\nBut just the ability to use both syntax together as they are now will be great."}}