{"action":"created","issue":{"url":"https://api.github.com/repos/jwaliszko/ExpressiveAnnotations/issues/98","labels_url":"https://api.github.com/repos/jwaliszko/ExpressiveAnnotations/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/jwaliszko/ExpressiveAnnotations/issues/98/comments","events_url":"https://api.github.com/repos/jwaliszko/ExpressiveAnnotations/issues/98/events","html_url":"https://github.com/jwaliszko/ExpressiveAnnotations/issues/98","id":127100734,"number":98,"title":"jQuery.Validation.Unobtrusive.Native does not work with ExpressiveAnnotation","user":{"login":"ansaj777","id":16744984,"avatar_url":"https://avatars.githubusercontent.com/u/16744984?v=3","gravatar_id":"","url":"https://api.github.com/users/ansaj777","html_url":"https://github.com/ansaj777","followers_url":"https://api.github.com/users/ansaj777/followers","following_url":"https://api.github.com/users/ansaj777/following{/other_user}","gists_url":"https://api.github.com/users/ansaj777/gists{/gist_id}","starred_url":"https://api.github.com/users/ansaj777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansaj777/subscriptions","organizations_url":"https://api.github.com/users/ansaj777/orgs","repos_url":"https://api.github.com/users/ansaj777/repos","events_url":"https://api.github.com/users/ansaj777/events{/privacy}","received_events_url":"https://api.github.com/users/ansaj777/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-17T15:12:15Z","updated_at":"2016-01-18T09:58:18Z","closed_at":null,"body":"I would like to use this https://github.com/johnnyreilly/jQuery.Validation.Unobtrusive.Native with your ExpressiveAnnotation because I am working with dynamic dom.\r\n\r\nEverything works correctly just If I use:\r\n\r\n```javascript\r\n[AssertThat(\"StartDate >= WorkStartOn\", ErrorMessage = \"{0} can not be lower then ({WorkStartOn})\")]\r\n[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = \"{0:yyyy-MM-dd}\")]\r\n[DataType(DataType.Date)]\r\n[Display(Name = \"StartDate\")]\r\npublic DateTime StartDate { get; set; }\r\n```\r\n\r\nthen I get back this text\r\n```javascript\r\nStartDate can not be lower then (a1e54428-8c27-4817-b92c-a85b49b42277) and not real WorkStartOn date.\r\n```\r\n\r\nCan you maybe check why this error?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jwaliszko/ExpressiveAnnotations/issues/comments/172482968","html_url":"https://github.com/jwaliszko/ExpressiveAnnotations/issues/98#issuecomment-172482968","issue_url":"https://api.github.com/repos/jwaliszko/ExpressiveAnnotations/issues/98","id":172482968,"user":{"login":"jwaliszko","id":1596462,"avatar_url":"https://avatars.githubusercontent.com/u/1596462?v=3","gravatar_id":"","url":"https://api.github.com/users/jwaliszko","html_url":"https://github.com/jwaliszko","followers_url":"https://api.github.com/users/jwaliszko/followers","following_url":"https://api.github.com/users/jwaliszko/following{/other_user}","gists_url":"https://api.github.com/users/jwaliszko/gists{/gist_id}","starred_url":"https://api.github.com/users/jwaliszko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwaliszko/subscriptions","organizations_url":"https://api.github.com/users/jwaliszko/orgs","repos_url":"https://api.github.com/users/jwaliszko/repos","events_url":"https://api.github.com/users/jwaliszko/events{/privacy}","received_events_url":"https://api.github.com/users/jwaliszko/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T09:58:17Z","updated_at":"2016-01-18T09:58:17Z","body":"Your `parsersMap` is `undefined` probably because your html is corrupted. Normally the html helpers provided by ASP.NET MVC creates proper HTML, based on which EA can work. Correct means all that `data-val-assertthat-*` HTML attributes are there, e.g.\r\n```\r\n<input \r\n    data-val=\"true\" \r\n    data-val-assertthat=\"StartDate can not be lower then (a4d4c136-dc76-43c9-b717-f6f399e7bf60)\"\r\n    data-val-assertthat-errfieldsmap=\"{&quot;WorkStartOn&quot;:&quot;a4d4c136-dc76-43c9-b717-f6f399e7bf60&quot;}\"     \r\n    data-val-assertthat-expression=\"&quot;StartDate >= WorkStartOn&quot;\"\r\n    data-val-assertthat-fieldsmap=\"{&quot;StartDate&quot;:&quot;datetime&quot;,&quot;WorkStartOn&quot;:&quot;datetime&quot;}\"\r\n    data-val-assertthat-parsersmap=\"{&quot;WorkStartOn&quot;:&quot;NonStandardDateParser&quot;}\"\r\n```\r\nCheck if the [method below](https://github.com/jwaliszko/ExpressiveAnnotations/blob/e90b6d291aea2a8ecf35a6bc42d1c847e232ba9e/src/expressive.annotations.validate.js#L639) has anything in the options argument, i.e.:\r\n```\r\n$.validator.unobtrusive.adapters.add(\r\n    adapter, \r\n    ['expression', 'fieldsMap', 'constsMap', 'parsersMap', 'errFieldsMap'], \r\n    function(options) { // options argument should be filled\r\n```\r\nI'd like to emphesize that `data-val-*` attributes are supposed to be generated automatically by some helpers. Otherwise, if you'll change your expression, these `data-val-*` attributes are required to be manually updated as well."}}