{"action":"created","issue":{"url":"https://api.github.com/repos/fge/json-schema-validator/issues/154","labels_url":"https://api.github.com/repos/fge/json-schema-validator/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/fge/json-schema-validator/issues/154/comments","events_url":"https://api.github.com/repos/fge/json-schema-validator/issues/154/events","html_url":"https://github.com/fge/json-schema-validator/issues/154","id":64188562,"number":154,"title":"String type minLenght and maxLenght validation cause exeption","user":{"login":"denissroos","id":11582717,"avatar_url":"https://avatars.githubusercontent.com/u/11582717?v=3","gravatar_id":"","url":"https://api.github.com/users/denissroos","html_url":"https://github.com/denissroos","followers_url":"https://api.github.com/users/denissroos/followers","following_url":"https://api.github.com/users/denissroos/following{/other_user}","gists_url":"https://api.github.com/users/denissroos/gists{/gist_id}","starred_url":"https://api.github.com/users/denissroos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denissroos/subscriptions","organizations_url":"https://api.github.com/users/denissroos/orgs","repos_url":"https://api.github.com/users/denissroos/repos","events_url":"https://api.github.com/users/denissroos/events{/privacy}","received_events_url":"https://api.github.com/users/denissroos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-25T06:19:03Z","updated_at":"2015-03-25T06:50:05Z","closed_at":null,"body":"Hi,\r\nI'm  trying validate json input. I'm loading json schema from string and using draft 4 version.\r\nI got level \"fatal\" exeption. In shema is used string type min and maxLenght parameteres validation. Validate method wait for ingeger, but got number and causes exeption.\r\n\r\nWhat am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/fge/json-schema-validator/issues/comments/85880088","html_url":"https://github.com/fge/json-schema-validator/issues/154#issuecomment-85880088","issue_url":"https://api.github.com/repos/fge/json-schema-validator/issues/154","id":85880088,"user":{"login":"fge","id":550006,"avatar_url":"https://avatars.githubusercontent.com/u/550006?v=3","gravatar_id":"","url":"https://api.github.com/users/fge","html_url":"https://github.com/fge","followers_url":"https://api.github.com/users/fge/followers","following_url":"https://api.github.com/users/fge/following{/other_user}","gists_url":"https://api.github.com/users/fge/gists{/gist_id}","starred_url":"https://api.github.com/users/fge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fge/subscriptions","organizations_url":"https://api.github.com/users/fge/orgs","repos_url":"https://api.github.com/users/fge/repos","events_url":"https://api.github.com/users/fge/events{/privacy}","received_events_url":"https://api.github.com/users/fge/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T06:50:05Z","updated_at":"2015-03-25T06:50:05Z","body":"The validator can't lie, the schema is not the same ;)\r\n\r\nDo verify the value of member `maxLength` in your schema when your input is a string; the problem is definitely there. Also, how do you load it etc.\r\n"}}