{"action":"created","issue":{"url":"https://api.github.com/repos/GPII/gpii-json-schema/issues/5","repository_url":"https://api.github.com/repos/GPII/gpii-json-schema","labels_url":"https://api.github.com/repos/GPII/gpii-json-schema/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/GPII/gpii-json-schema/issues/5/comments","events_url":"https://api.github.com/repos/GPII/gpii-json-schema/issues/5/events","html_url":"https://github.com/GPII/gpii-json-schema/pull/5","id":114831102,"number":5,"title":"GPII-1336: update `schemaMiddleware` to work with more than just POST data...","user":{"login":"the-t-in-rtf","id":5765222,"avatar_url":"https://avatars.githubusercontent.com/u/5765222?v=3","gravatar_id":"","url":"https://api.github.com/users/the-t-in-rtf","html_url":"https://github.com/the-t-in-rtf","followers_url":"https://api.github.com/users/the-t-in-rtf/followers","following_url":"https://api.github.com/users/the-t-in-rtf/following{/other_user}","gists_url":"https://api.github.com/users/the-t-in-rtf/gists{/gist_id}","starred_url":"https://api.github.com/users/the-t-in-rtf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-t-in-rtf/subscriptions","organizations_url":"https://api.github.com/users/the-t-in-rtf/orgs","repos_url":"https://api.github.com/users/the-t-in-rtf/repos","events_url":"https://api.github.com/users/the-t-in-rtf/events{/privacy}","received_events_url":"https://api.github.com/users/the-t-in-rtf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"amb26","id":561418,"avatar_url":"https://avatars.githubusercontent.com/u/561418?v=3","gravatar_id":"","url":"https://api.github.com/users/amb26","html_url":"https://github.com/amb26","followers_url":"https://api.github.com/users/amb26/followers","following_url":"https://api.github.com/users/amb26/following{/other_user}","gists_url":"https://api.github.com/users/amb26/gists{/gist_id}","starred_url":"https://api.github.com/users/amb26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amb26/subscriptions","organizations_url":"https://api.github.com/users/amb26/orgs","repos_url":"https://api.github.com/users/amb26/repos","events_url":"https://api.github.com/users/amb26/events{/privacy}","received_events_url":"https://api.github.com/users/amb26/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-11-03T14:40:00Z","updated_at":"2016-02-10T10:23:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GPII/gpii-json-schema/pulls/5","html_url":"https://github.com/GPII/gpii-json-schema/pull/5","diff_url":"https://github.com/GPII/gpii-json-schema/pull/5.diff","patch_url":"https://github.com/GPII/gpii-json-schema/pull/5.patch"},"body":"See [GPII-1336](https://issues.gpii.net/browse/GPII-1336) for details."},"comment":{"url":"https://api.github.com/repos/GPII/gpii-json-schema/issues/comments/182296827","html_url":"https://github.com/GPII/gpii-json-schema/pull/5#issuecomment-182296827","issue_url":"https://api.github.com/repos/GPII/gpii-json-schema/issues/5","id":182296827,"user":{"login":"the-t-in-rtf","id":5765222,"avatar_url":"https://avatars.githubusercontent.com/u/5765222?v=3","gravatar_id":"","url":"https://api.github.com/users/the-t-in-rtf","html_url":"https://github.com/the-t-in-rtf","followers_url":"https://api.github.com/users/the-t-in-rtf/followers","following_url":"https://api.github.com/users/the-t-in-rtf/following{/other_user}","gists_url":"https://api.github.com/users/the-t-in-rtf/gists{/gist_id}","starred_url":"https://api.github.com/users/the-t-in-rtf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-t-in-rtf/subscriptions","organizations_url":"https://api.github.com/users/the-t-in-rtf/orgs","repos_url":"https://api.github.com/users/the-t-in-rtf/repos","events_url":"https://api.github.com/users/the-t-in-rtf/events{/privacy}","received_events_url":"https://api.github.com/users/the-t-in-rtf/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T10:23:05Z","updated_at":"2016-02-10T10:23:05Z","body":"@amb26 left a top-level comment above about removing the static \"browserified\" version of AJV from our codebase.\r\n\r\nI experimented briefly with `grunt-browserify`, which would have avoided having to install `browserify` globally.  However, the \"alias\" syntax required to tell `browserify` to expose the correct top-level `Ajv` variable did not seem to work, and `grunt-browserify` in general seems somewhat abandoned.\r\n\r\nI discovered that that AJV team have already provided a bundling task as part of their `package.json`, which presumably is part of their browser testing. I used the `grunt-exec` plugin to launch their bundling task . This requires `browserify` to be installed globally, but is otherwise reasonable.\r\n\r\nI have updated the README to reflect the new process and the requirement to have `browserify` installed globally.\r\n\r\nThe new process works on both OS X and Windows and the legacy checked-in copy of AJV has been removed."}}