{"action":"created","issue":{"url":"https://api.github.com/repos/for-GET/jesse/issues/16","repository_url":"https://api.github.com/repos/for-GET/jesse","labels_url":"https://api.github.com/repos/for-GET/jesse/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/for-GET/jesse/issues/16/comments","events_url":"https://api.github.com/repos/for-GET/jesse/issues/16/events","html_url":"https://github.com/for-GET/jesse/issues/16","id":137604064,"number":16,"title":"list of objects with requred properties","user":{"login":"seriyps","id":422014,"avatar_url":"https://avatars.githubusercontent.com/u/422014?v=3","gravatar_id":"","url":"https://api.github.com/users/seriyps","html_url":"https://github.com/seriyps","followers_url":"https://api.github.com/users/seriyps/followers","following_url":"https://api.github.com/users/seriyps/following{/other_user}","gists_url":"https://api.github.com/users/seriyps/gists{/gist_id}","starred_url":"https://api.github.com/users/seriyps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seriyps/subscriptions","organizations_url":"https://api.github.com/users/seriyps/orgs","repos_url":"https://api.github.com/users/seriyps/repos","events_url":"https://api.github.com/users/seriyps/events{/privacy}","received_events_url":"https://api.github.com/users/seriyps/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-01T15:27:06Z","updated_at":"2016-03-01T15:45:40Z","closed_at":null,"body":"Minimum schema:\r\n\r\n```json\r\n{\r\n  \"items\": {\r\n    \"required\": [\"b\"]\r\n  },\r\n  \"$schema\": \"http://json-schema.org/draft-04/schema#\"\r\n}\r\n```\r\n\r\nMinimum JSON\r\n\r\n```json\r\n[{\"c\": \"d\"}]\r\n```\r\n\r\n```erlang\r\njesse:validate_with_schema(#{<<\"items\">> => #{<<\"required\">> => [<<\"b\">>]},\r\n                             <<\"$schema\">> => <<\"http://json-schema.org/draft-04/schema#\">>},\r\n                           [#{<<\"c\">> => <<\"d\">>}]).\r\n{ok,[#{<<\"c\">> => <<\"d\">>}]}\r\n```\r\n\r\nExpected: '{missing_required_property, \"b\"}', but validation succeeds instead.\r\n\r\nOther implementations (eg http://jsonschemalint.com/draft4/) catches this error."},"comment":{"url":"https://api.github.com/repos/for-GET/jesse/issues/comments/190777705","html_url":"https://github.com/for-GET/jesse/issues/16#issuecomment-190777705","issue_url":"https://api.github.com/repos/for-GET/jesse/issues/16","id":190777705,"user":{"login":"seriyps","id":422014,"avatar_url":"https://avatars.githubusercontent.com/u/422014?v=3","gravatar_id":"","url":"https://api.github.com/users/seriyps","html_url":"https://github.com/seriyps","followers_url":"https://api.github.com/users/seriyps/followers","following_url":"https://api.github.com/users/seriyps/following{/other_user}","gists_url":"https://api.github.com/users/seriyps/gists{/gist_id}","starred_url":"https://api.github.com/users/seriyps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seriyps/subscriptions","organizations_url":"https://api.github.com/users/seriyps/orgs","repos_url":"https://api.github.com/users/seriyps/repos","events_url":"https://api.github.com/users/seriyps/events{/privacy}","received_events_url":"https://api.github.com/users/seriyps/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T15:45:40Z","updated_at":"2016-03-01T15:45:40Z","body":"May be temporary resolved like this:\r\n\r\n```\r\n> jesse:validate_with_schema(#{<<\"items\">> => #{<<\"required\">> => [<<\"b\">>]}},\r\n                             [#{<<\"c\">> => <<\"d\">>}],\r\n                             [{default_schema_ver, <<\"http://json-schema.org/draft-04/schema#\">>}]).\r\n{error,[{data_invalid,#{<<\"required\">> => [<<\"b\">>]},\r\n                      missing_required_property,\r\n                      #{<<\"c\">> => <<\"d\">>},\r\n                      [0]}]}\r\n```"}}