{"action":"created","issue":{"url":"https://api.github.com/repos/NSLS-II/event-model/issues/15","repository_url":"https://api.github.com/repos/NSLS-II/event-model","labels_url":"https://api.github.com/repos/NSLS-II/event-model/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/NSLS-II/event-model/issues/15/comments","events_url":"https://api.github.com/repos/NSLS-II/event-model/issues/15/events","html_url":"https://github.com/NSLS-II/event-model/pull/15","id":313844325,"number":15,"title":"Enh hints","user":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars3.githubusercontent.com/u/199813?v=4","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/NSLS-II/event-model/milestones/1","html_url":"https://github.com/NSLS-II/event-model/milestone/1","labels_url":"https://api.github.com/repos/NSLS-II/event-model/milestones/1/labels","id":3279601,"number":1,"title":"18 cycle 2","description":"Milestone for NSLS-II cycle 2 release","creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars3.githubusercontent.com/u/199813?v=4","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2018-04-19T00:09:49Z","updated_at":"2018-04-20T00:22:58Z","due_on":"2018-05-10T07:00:00Z","closed_at":null},"comments":0,"created_at":"2018-04-12T18:46:44Z","updated_at":"2018-05-07T20:47:45Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/NSLS-II/event-model/pulls/15","html_url":"https://github.com/NSLS-II/event-model/pull/15","diff_url":"https://github.com/NSLS-II/event-model/pull/15.diff","patch_url":"https://github.com/NSLS-II/event-model/pull/15.patch"},"body":"This adds \"hints\" along with the two keys we use to the schemas."},"comment":{"url":"https://api.github.com/repos/NSLS-II/event-model/issues/comments/387201432","html_url":"https://github.com/NSLS-II/event-model/pull/15#issuecomment-387201432","issue_url":"https://api.github.com/repos/NSLS-II/event-model/issues/15","id":387201432,"user":{"login":"jrmlhermitte","id":705366,"avatar_url":"https://avatars2.githubusercontent.com/u/705366?v=4","gravatar_id":"","url":"https://api.github.com/users/jrmlhermitte","html_url":"https://github.com/jrmlhermitte","followers_url":"https://api.github.com/users/jrmlhermitte/followers","following_url":"https://api.github.com/users/jrmlhermitte/following{/other_user}","gists_url":"https://api.github.com/users/jrmlhermitte/gists{/gist_id}","starred_url":"https://api.github.com/users/jrmlhermitte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrmlhermitte/subscriptions","organizations_url":"https://api.github.com/users/jrmlhermitte/orgs","repos_url":"https://api.github.com/users/jrmlhermitte/repos","events_url":"https://api.github.com/users/jrmlhermitte/events{/privacy}","received_events_url":"https://api.github.com/users/jrmlhermitte/received_events","type":"User","site_admin":false},"created_at":"2018-05-07T20:47:45Z","updated_at":"2018-05-07T20:47:45Z","author_association":"NONE","body":"I tested with this:\r\n```py3\r\n# test a json schema\r\n\r\nimport event_model\r\nimport jsonschema\r\n\r\nfrom databroker import Broker\r\n\r\n#db = Broker.named(\"chx\")\r\ndb = Broker.named(\"iss\")\r\n\r\nstream = db[-100].documents()\r\n\r\nfor nds in stream:\r\n    docname = nds[0]\r\n    doc = nds[1]\r\n    schema = event_model.schemas[event_model.DocumentNames[docname]]\r\n    jsonschema.validate(doc, schema)\r\n```\r\nwith 2018 collection environment and this update from this branch on random chx data and random iss data. No errrors, looks good to me!"}}
{"actor":{"display_login":"jrmlhermitte"}}