{"action":"opened","number":264,"pull_request":{"url":"https://api.github.com/repos/HubSpot/jinjava/pulls/264","id":241850408,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxODUwNDA4","html_url":"https://github.com/HubSpot/jinjava/pull/264","diff_url":"https://github.com/HubSpot/jinjava/pull/264.diff","patch_url":"https://github.com/HubSpot/jinjava/pull/264.patch","issue_url":"https://api.github.com/repos/HubSpot/jinjava/issues/264","number":264,"state":"open","locked":false,"title":"Add validation mode","user":{"login":"boulter","id":152548,"node_id":"MDQ6VXNlcjE1MjU0OA==","avatar_url":"https://avatars3.githubusercontent.com/u/152548?v=4","gravatar_id":"","url":"https://api.github.com/users/boulter","html_url":"https://github.com/boulter","followers_url":"https://api.github.com/users/boulter/followers","following_url":"https://api.github.com/users/boulter/following{/other_user}","gists_url":"https://api.github.com/users/boulter/gists{/gist_id}","starred_url":"https://api.github.com/users/boulter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boulter/subscriptions","organizations_url":"https://api.github.com/users/boulter/orgs","repos_url":"https://api.github.com/users/boulter/repos","events_url":"https://api.github.com/users/boulter/events{/privacy}","received_events_url":"https://api.github.com/users/boulter/received_events","type":"User","site_admin":false},"body":"Currently jinjava only parses expressions inside active code paths. This is efficient, but also does not look at expressions that might have syntax errors. This adds a validation mode to the interpreter that parses inactive code blocks for syntax, but does not execute any macros, functions or filters. \r\n\r\nThis allows full syntax checking of templates by calling `setValidationMode(true)` when building the context. ","created_at":"2019-01-02T21:19:39Z","updated_at":"2019-01-02T21:19:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/HubSpot/jinjava/pulls/264/commits","review_comments_url":"https://api.github.com/repos/HubSpot/jinjava/pulls/264/comments","review_comment_url":"https://api.github.com/repos/HubSpot/jinjava/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HubSpot/jinjava/issues/264/comments","statuses_url":"https://api.github.com/repos/HubSpot/jinjava/statuses/e8207a0646d2bcfe73501e666a5c9c149f14c890","head":{"label":"HubSpot:validation-mode","ref":"validation-mode","sha":"e8207a0646d2bcfe73501e666a5c9c149f14c890","user":{"login":"HubSpot","id":326419,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNjQxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/326419?v=4","gravatar_id":"","url":"https://api.github.com/users/HubSpot","html_url":"https://github.com/HubSpot","followers_url":"https://api.github.com/users/HubSpot/followers","following_url":"https://api.github.com/users/HubSpot/following{/other_user}","gists_url":"https://api.github.com/users/HubSpot/gists{/gist_id}","starred_url":"https://api.github.com/users/HubSpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubSpot/subscriptions","organizations_url":"https://api.github.com/users/HubSpot/orgs","repos_url":"https://api.github.com/users/HubSpot/repos","events_url":"https://api.github.com/users/HubSpot/events{/privacy}","received_events_url":"https://api.github.com/users/HubSpot/received_events","type":"Organization","site_admin":false},"repo":{"id":25169896,"node_id":"MDEwOlJlcG9zaXRvcnkyNTE2OTg5Ng==","name":"jinjava","full_name":"HubSpot/jinjava","private":false,"owner":{"login":"HubSpot","id":326419,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNjQxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/326419?v=4","gravatar_id":"","url":"https://api.github.com/users/HubSpot","html_url":"https://github.com/HubSpot","followers_url":"https://api.github.com/users/HubSpot/followers","following_url":"https://api.github.com/users/HubSpot/following{/other_user}","gists_url":"https://api.github.com/users/HubSpot/gists{/gist_id}","starred_url":"https://api.github.com/users/HubSpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubSpot/subscriptions","organizations_url":"https://api.github.com/users/HubSpot/orgs","repos_url":"https://api.github.com/users/HubSpot/repos","events_url":"https://api.github.com/users/HubSpot/events{/privacy}","received_events_url":"https://api.github.com/users/HubSpot/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/HubSpot/jinjava","description":"Jinja template engine for Java","fork":false,"url":"https://api.github.com/repos/HubSpot/jinjava","forks_url":"https://api.github.com/repos/HubSpot/jinjava/forks","keys_url":"https://api.github.com/repos/HubSpot/jinjava/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HubSpot/jinjava/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HubSpot/jinjava/teams","hooks_url":"https://api.github.com/repos/HubSpot/jinjava/hooks","issue_events_url":"https://api.github.com/repos/HubSpot/jinjava/issues/events{/number}","events_url":"https://api.github.com/repos/HubSpot/jinjava/events","assignees_url":"https://api.github.com/repos/HubSpot/jinjava/assignees{/user}","branches_url":"https://api.github.com/repos/HubSpot/jinjava/branches{/branch}","tags_url":"https://api.github.com/repos/HubSpot/jinjava/tags","blobs_url":"https://api.github.com/repos/HubSpot/jinjava/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HubSpot/jinjava/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HubSpot/jinjava/git/refs{/sha}","trees_url":"https://api.github.com/repos/HubSpot/jinjava/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HubSpot/jinjava/statuses/{sha}","languages_url":"https://api.github.com/repos/HubSpot/jinjava/languages","stargazers_url":"https://api.github.com/repos/HubSpot/jinjava/stargazers","contributors_url":"https://api.github.com/repos/HubSpot/jinjava/contributors","subscribers_url":"https://api.github.com/repos/HubSpot/jinjava/subscribers","subscription_url":"https://api.github.com/repos/HubSpot/jinjava/subscription","commits_url":"https://api.github.com/repos/HubSpot/jinjava/commits{/sha}","git_commits_url":"https://api.github.com/repos/HubSpot/jinjava/git/commits{/sha}","comments_url":"https://api.github.com/repos/HubSpot/jinjava/comments{/number}","issue_comment_url":"https://api.github.com/repos/HubSpot/jinjava/issues/comments{/number}","contents_url":"https://api.github.com/repos/HubSpot/jinjava/contents/{+path}","compare_url":"https://api.github.com/repos/HubSpot/jinjava/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HubSpot/jinjava/merges","archive_url":"https://api.github.com/repos/HubSpot/jinjava/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HubSpot/jinjava/downloads","issues_url":"https://api.github.com/repos/HubSpot/jinjava/issues{/number}","pulls_url":"https://api.github.com/repos/HubSpot/jinjava/pulls{/number}","milestones_url":"https://api.github.com/repos/HubSpot/jinjava/milestones{/number}","notifications_url":"https://api.github.com/repos/HubSpot/jinjava/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HubSpot/jinjava/labels{/name}","releases_url":"https://api.github.com/repos/HubSpot/jinjava/releases{/id}","deployments_url":"https://api.github.com/repos/HubSpot/jinjava/deployments","created_at":"2014-10-13T17:39:22Z","updated_at":"2019-01-02T20:15:38Z","pushed_at":"2019-01-02T21:14:59Z","git_url":"git://github.com/HubSpot/jinjava.git","ssh_url":"git@github.com:HubSpot/jinjava.git","clone_url":"https://github.com/HubSpot/jinjava.git","svn_url":"https://github.com/HubSpot/jinjava","homepage":"","size":1601,"stargazers_count":296,"watchers_count":296,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":62,"open_issues":23,"watchers":296,"default_branch":"master"}},"base":{"label":"HubSpot:master","ref":"master","sha":"43ccadb60ea1674617292c279c9b8d29e8e91e3a","user":{"login":"HubSpot","id":326419,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNjQxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/326419?v=4","gravatar_id":"","url":"https://api.github.com/users/HubSpot","html_url":"https://github.com/HubSpot","followers_url":"https://api.github.com/users/HubSpot/followers","following_url":"https://api.github.com/users/HubSpot/following{/other_user}","gists_url":"https://api.github.com/users/HubSpot/gists{/gist_id}","starred_url":"https://api.github.com/users/HubSpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubSpot/subscriptions","organizations_url":"https://api.github.com/users/HubSpot/orgs","repos_url":"https://api.github.com/users/HubSpot/repos","events_url":"https://api.github.com/users/HubSpot/events{/privacy}","received_events_url":"https://api.github.com/users/HubSpot/received_events","type":"Organization","site_admin":false},"repo":{"id":25169896,"node_id":"MDEwOlJlcG9zaXRvcnkyNTE2OTg5Ng==","name":"jinjava","full_name":"HubSpot/jinjava","private":false,"owner":{"login":"HubSpot","id":326419,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNjQxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/326419?v=4","gravatar_id":"","url":"https://api.github.com/users/HubSpot","html_url":"https://github.com/HubSpot","followers_url":"https://api.github.com/users/HubSpot/followers","following_url":"https://api.github.com/users/HubSpot/following{/other_user}","gists_url":"https://api.github.com/users/HubSpot/gists{/gist_id}","starred_url":"https://api.github.com/users/HubSpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubSpot/subscriptions","organizations_url":"https://api.github.com/users/HubSpot/orgs","repos_url":"https://api.github.com/users/HubSpot/repos","events_url":"https://api.github.com/users/HubSpot/events{/privacy}","received_events_url":"https://api.github.com/users/HubSpot/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/HubSpot/jinjava","description":"Jinja template engine for Java","fork":false,"url":"https://api.github.com/repos/HubSpot/jinjava","forks_url":"https://api.github.com/repos/HubSpot/jinjava/forks","keys_url":"https://api.github.com/repos/HubSpot/jinjava/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HubSpot/jinjava/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HubSpot/jinjava/teams","hooks_url":"https://api.github.com/repos/HubSpot/jinjava/hooks","issue_events_url":"https://api.github.com/repos/HubSpot/jinjava/issues/events{/number}","events_url":"https://api.github.com/repos/HubSpot/jinjava/events","assignees_url":"https://api.github.com/repos/HubSpot/jinjava/assignees{/user}","branches_url":"https://api.github.com/repos/HubSpot/jinjava/branches{/branch}","tags_url":"https://api.github.com/repos/HubSpot/jinjava/tags","blobs_url":"https://api.github.com/repos/HubSpot/jinjava/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HubSpot/jinjava/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HubSpot/jinjava/git/refs{/sha}","trees_url":"https://api.github.com/repos/HubSpot/jinjava/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HubSpot/jinjava/statuses/{sha}","languages_url":"https://api.github.com/repos/HubSpot/jinjava/languages","stargazers_url":"https://api.github.com/repos/HubSpot/jinjava/stargazers","contributors_url":"https://api.github.com/repos/HubSpot/jinjava/contributors","subscribers_url":"https://api.github.com/repos/HubSpot/jinjava/subscribers","subscription_url":"https://api.github.com/repos/HubSpot/jinjava/subscription","commits_url":"https://api.github.com/repos/HubSpot/jinjava/commits{/sha}","git_commits_url":"https://api.github.com/repos/HubSpot/jinjava/git/commits{/sha}","comments_url":"https://api.github.com/repos/HubSpot/jinjava/comments{/number}","issue_comment_url":"https://api.github.com/repos/HubSpot/jinjava/issues/comments{/number}","contents_url":"https://api.github.com/repos/HubSpot/jinjava/contents/{+path}","compare_url":"https://api.github.com/repos/HubSpot/jinjava/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HubSpot/jinjava/merges","archive_url":"https://api.github.com/repos/HubSpot/jinjava/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HubSpot/jinjava/downloads","issues_url":"https://api.github.com/repos/HubSpot/jinjava/issues{/number}","pulls_url":"https://api.github.com/repos/HubSpot/jinjava/pulls{/number}","milestones_url":"https://api.github.com/repos/HubSpot/jinjava/milestones{/number}","notifications_url":"https://api.github.com/repos/HubSpot/jinjava/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HubSpot/jinjava/labels{/name}","releases_url":"https://api.github.com/repos/HubSpot/jinjava/releases{/id}","deployments_url":"https://api.github.com/repos/HubSpot/jinjava/deployments","created_at":"2014-10-13T17:39:22Z","updated_at":"2019-01-02T20:15:38Z","pushed_at":"2019-01-02T21:14:59Z","git_url":"git://github.com/HubSpot/jinjava.git","ssh_url":"git@github.com:HubSpot/jinjava.git","clone_url":"https://github.com/HubSpot/jinjava.git","svn_url":"https://github.com/HubSpot/jinjava","homepage":"","size":1601,"stargazers_count":296,"watchers_count":296,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":62,"open_issues":23,"watchers":296,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HubSpot/jinjava/pulls/264"},"html":{"href":"https://github.com/HubSpot/jinjava/pull/264"},"issue":{"href":"https://api.github.com/repos/HubSpot/jinjava/issues/264"},"comments":{"href":"https://api.github.com/repos/HubSpot/jinjava/issues/264/comments"},"review_comments":{"href":"https://api.github.com/repos/HubSpot/jinjava/pulls/264/comments"},"review_comment":{"href":"https://api.github.com/repos/HubSpot/jinjava/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HubSpot/jinjava/pulls/264/commits"},"statuses":{"href":"https://api.github.com/repos/HubSpot/jinjava/statuses/e8207a0646d2bcfe73501e666a5c9c149f14c890"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":384,"deletions":72,"changed_files":19}}
{"actor":{"display_login":"boulter"}}