{"action":"opened","number":32,"pull_request":{"url":"https://api.github.com/repos/legalthings/data-enricher/pulls/32","id":173166821,"html_url":"https://github.com/legalthings/data-enricher/pull/32","diff_url":"https://github.com/legalthings/data-enricher/pull/32.diff","patch_url":"https://github.com/legalthings/data-enricher/pull/32.patch","issue_url":"https://api.github.com/repos/legalthings/data-enricher/issues/32","number":32,"state":"open","locked":false,"title":"Enricher schema","user":{"login":"moesjarraf","id":5793511,"avatar_url":"https://avatars2.githubusercontent.com/u/5793511?v=4","gravatar_id":"","url":"https://api.github.com/users/moesjarraf","html_url":"https://github.com/moesjarraf","followers_url":"https://api.github.com/users/moesjarraf/followers","following_url":"https://api.github.com/users/moesjarraf/following{/other_user}","gists_url":"https://api.github.com/users/moesjarraf/gists{/gist_id}","starred_url":"https://api.github.com/users/moesjarraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moesjarraf/subscriptions","organizations_url":"https://api.github.com/users/moesjarraf/orgs","repos_url":"https://api.github.com/users/moesjarraf/repos","events_url":"https://api.github.com/users/moesjarraf/events{/privacy}","received_events_url":"https://api.github.com/users/moesjarraf/received_events","type":"User","site_admin":false},"body":"## Todo\r\n\r\n- [ ] Data instructions are always objects with only the instruction as property. This removes the arbitrary order of execution.\r\n- [ ] <ref> now takes a JMESPath query instead. Dot notation will also work as JMESPath query.\r\n- [ ] Added <equal> which compares 2 values, resulting in a boolean.\r\n- [ ] Added <match> which finds a substring or matches against a regex, resulting in a boolean.\r\n- [ ] Removed <ifset>, use <if> instead\r\n- [ ] Added <if> which takes a boolean as condition and has a then and else property.\r\n<switch> now is an object with on and options, rather than using additional properties in the instruction object.\r\n- [ ] The <enrich> instruction now has an input property, rather than using additional properties in the instruction object.\r\n- [ ] Replaced <jmespath> with <apply>. The <apply> instruction has an input and query property.\r\n- [ ] <merge> no longer takes strings, use <join> for strings instead.\r\n- [ ] Added <join> instruction to join strings.\r\n- [ ] Added <replace> instruction to find / replace in a string.\r\n- [ ] Added <numberformat> to format number using locale.\r\n<dateformat> may take input_format and locale.\r\n- [ ] Renamed date property of <dateformat> to input.\r\n- [ ] Removed <transform> instruction. Instead there are several new instructions.\r\n- [ ] Added <hash> instruction. This supports less methods.\r\nA <hash> instruction can have an hmac property.\r\n- [ ] Added <encode> and <decode> instructions.\r\n- [ ] New encode / decode methods base58 and url.\r\n- [ ] Added <serialize> and <unserialize> instructions.\r\n- [ ] No longer support the php serialize / unserialize methods.\r\n- [ ] New serialize / unserialize method url. This creates an URL Query from an object.\r\n- [ ] Added <encrypt> and <decrypt> instructions.\r\n- [ ] Added <sign> and <verify> to create and verify a cryptographic signature.\r\n","created_at":"2018-03-06T14:03:47Z","updated_at":"2018-03-06T14:03:47Z","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/legalthings/data-enricher/pulls/32/commits","review_comments_url":"https://api.github.com/repos/legalthings/data-enricher/pulls/32/comments","review_comment_url":"https://api.github.com/repos/legalthings/data-enricher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/legalthings/data-enricher/issues/32/comments","statuses_url":"https://api.github.com/repos/legalthings/data-enricher/statuses/c49976afe9ac30b5bd8ef58f8f9b0ab01666ac02","head":{"label":"legalthings:enricher-schema","ref":"enricher-schema","sha":"c49976afe9ac30b5bd8ef58f8f9b0ab01666ac02","user":{"login":"legalthings","id":8820279,"avatar_url":"https://avatars0.githubusercontent.com/u/8820279?v=4","gravatar_id":"","url":"https://api.github.com/users/legalthings","html_url":"https://github.com/legalthings","followers_url":"https://api.github.com/users/legalthings/followers","following_url":"https://api.github.com/users/legalthings/following{/other_user}","gists_url":"https://api.github.com/users/legalthings/gists{/gist_id}","starred_url":"https://api.github.com/users/legalthings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legalthings/subscriptions","organizations_url":"https://api.github.com/users/legalthings/orgs","repos_url":"https://api.github.com/users/legalthings/repos","events_url":"https://api.github.com/users/legalthings/events{/privacy}","received_events_url":"https://api.github.com/users/legalthings/received_events","type":"Organization","site_admin":false},"repo":{"id":40689064,"name":"data-enricher","full_name":"legalthings/data-enricher","owner":{"login":"legalthings","id":8820279,"avatar_url":"https://avatars0.githubusercontent.com/u/8820279?v=4","gravatar_id":"","url":"https://api.github.com/users/legalthings","html_url":"https://github.com/legalthings","followers_url":"https://api.github.com/users/legalthings/followers","following_url":"https://api.github.com/users/legalthings/following{/other_user}","gists_url":"https://api.github.com/users/legalthings/gists{/gist_id}","starred_url":"https://api.github.com/users/legalthings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legalthings/subscriptions","organizations_url":"https://api.github.com/users/legalthings/orgs","repos_url":"https://api.github.com/users/legalthings/repos","events_url":"https://api.github.com/users/legalthings/events{/privacy}","received_events_url":"https://api.github.com/users/legalthings/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/legalthings/data-enricher","description":"Enrich objects by processing special properties (PHP)","fork":false,"url":"https://api.github.com/repos/legalthings/data-enricher","forks_url":"https://api.github.com/repos/legalthings/data-enricher/forks","keys_url":"https://api.github.com/repos/legalthings/data-enricher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/legalthings/data-enricher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/legalthings/data-enricher/teams","hooks_url":"https://api.github.com/repos/legalthings/data-enricher/hooks","issue_events_url":"https://api.github.com/repos/legalthings/data-enricher/issues/events{/number}","events_url":"https://api.github.com/repos/legalthings/data-enricher/events","assignees_url":"https://api.github.com/repos/legalthings/data-enricher/assignees{/user}","branches_url":"https://api.github.com/repos/legalthings/data-enricher/branches{/branch}","tags_url":"https://api.github.com/repos/legalthings/data-enricher/tags","blobs_url":"https://api.github.com/repos/legalthings/data-enricher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/legalthings/data-enricher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/legalthings/data-enricher/git/refs{/sha}","trees_url":"https://api.github.com/repos/legalthings/data-enricher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/legalthings/data-enricher/statuses/{sha}","languages_url":"https://api.github.com/repos/legalthings/data-enricher/languages","stargazers_url":"https://api.github.com/repos/legalthings/data-enricher/stargazers","contributors_url":"https://api.github.com/repos/legalthings/data-enricher/contributors","subscribers_url":"https://api.github.com/repos/legalthings/data-enricher/subscribers","subscription_url":"https://api.github.com/repos/legalthings/data-enricher/subscription","commits_url":"https://api.github.com/repos/legalthings/data-enricher/commits{/sha}","git_commits_url":"https://api.github.com/repos/legalthings/data-enricher/git/commits{/sha}","comments_url":"https://api.github.com/repos/legalthings/data-enricher/comments{/number}","issue_comment_url":"https://api.github.com/repos/legalthings/data-enricher/issues/comments{/number}","contents_url":"https://api.github.com/repos/legalthings/data-enricher/contents/{+path}","compare_url":"https://api.github.com/repos/legalthings/data-enricher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/legalthings/data-enricher/merges","archive_url":"https://api.github.com/repos/legalthings/data-enricher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/legalthings/data-enricher/downloads","issues_url":"https://api.github.com/repos/legalthings/data-enricher/issues{/number}","pulls_url":"https://api.github.com/repos/legalthings/data-enricher/pulls{/number}","milestones_url":"https://api.github.com/repos/legalthings/data-enricher/milestones{/number}","notifications_url":"https://api.github.com/repos/legalthings/data-enricher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/legalthings/data-enricher/labels{/name}","releases_url":"https://api.github.com/repos/legalthings/data-enricher/releases{/id}","deployments_url":"https://api.github.com/repos/legalthings/data-enricher/deployments","created_at":"2015-08-14T01:13:25Z","updated_at":"2017-07-04T13:01:23Z","pushed_at":"2018-03-06T14:02:27Z","git_url":"git://github.com/legalthings/data-enricher.git","ssh_url":"git@github.com:legalthings/data-enricher.git","clone_url":"https://github.com/legalthings/data-enricher.git","svn_url":"https://github.com/legalthings/data-enricher","homepage":null,"size":98,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"legalthings:master","ref":"master","sha":"2dd17c01114b2d769393c4d41fffbc02806ee02b","user":{"login":"legalthings","id":8820279,"avatar_url":"https://avatars0.githubusercontent.com/u/8820279?v=4","gravatar_id":"","url":"https://api.github.com/users/legalthings","html_url":"https://github.com/legalthings","followers_url":"https://api.github.com/users/legalthings/followers","following_url":"https://api.github.com/users/legalthings/following{/other_user}","gists_url":"https://api.github.com/users/legalthings/gists{/gist_id}","starred_url":"https://api.github.com/users/legalthings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legalthings/subscriptions","organizations_url":"https://api.github.com/users/legalthings/orgs","repos_url":"https://api.github.com/users/legalthings/repos","events_url":"https://api.github.com/users/legalthings/events{/privacy}","received_events_url":"https://api.github.com/users/legalthings/received_events","type":"Organization","site_admin":false},"repo":{"id":40689064,"name":"data-enricher","full_name":"legalthings/data-enricher","owner":{"login":"legalthings","id":8820279,"avatar_url":"https://avatars0.githubusercontent.com/u/8820279?v=4","gravatar_id":"","url":"https://api.github.com/users/legalthings","html_url":"https://github.com/legalthings","followers_url":"https://api.github.com/users/legalthings/followers","following_url":"https://api.github.com/users/legalthings/following{/other_user}","gists_url":"https://api.github.com/users/legalthings/gists{/gist_id}","starred_url":"https://api.github.com/users/legalthings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legalthings/subscriptions","organizations_url":"https://api.github.com/users/legalthings/orgs","repos_url":"https://api.github.com/users/legalthings/repos","events_url":"https://api.github.com/users/legalthings/events{/privacy}","received_events_url":"https://api.github.com/users/legalthings/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/legalthings/data-enricher","description":"Enrich objects by processing special properties (PHP)","fork":false,"url":"https://api.github.com/repos/legalthings/data-enricher","forks_url":"https://api.github.com/repos/legalthings/data-enricher/forks","keys_url":"https://api.github.com/repos/legalthings/data-enricher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/legalthings/data-enricher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/legalthings/data-enricher/teams","hooks_url":"https://api.github.com/repos/legalthings/data-enricher/hooks","issue_events_url":"https://api.github.com/repos/legalthings/data-enricher/issues/events{/number}","events_url":"https://api.github.com/repos/legalthings/data-enricher/events","assignees_url":"https://api.github.com/repos/legalthings/data-enricher/assignees{/user}","branches_url":"https://api.github.com/repos/legalthings/data-enricher/branches{/branch}","tags_url":"https://api.github.com/repos/legalthings/data-enricher/tags","blobs_url":"https://api.github.com/repos/legalthings/data-enricher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/legalthings/data-enricher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/legalthings/data-enricher/git/refs{/sha}","trees_url":"https://api.github.com/repos/legalthings/data-enricher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/legalthings/data-enricher/statuses/{sha}","languages_url":"https://api.github.com/repos/legalthings/data-enricher/languages","stargazers_url":"https://api.github.com/repos/legalthings/data-enricher/stargazers","contributors_url":"https://api.github.com/repos/legalthings/data-enricher/contributors","subscribers_url":"https://api.github.com/repos/legalthings/data-enricher/subscribers","subscription_url":"https://api.github.com/repos/legalthings/data-enricher/subscription","commits_url":"https://api.github.com/repos/legalthings/data-enricher/commits{/sha}","git_commits_url":"https://api.github.com/repos/legalthings/data-enricher/git/commits{/sha}","comments_url":"https://api.github.com/repos/legalthings/data-enricher/comments{/number}","issue_comment_url":"https://api.github.com/repos/legalthings/data-enricher/issues/comments{/number}","contents_url":"https://api.github.com/repos/legalthings/data-enricher/contents/{+path}","compare_url":"https://api.github.com/repos/legalthings/data-enricher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/legalthings/data-enricher/merges","archive_url":"https://api.github.com/repos/legalthings/data-enricher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/legalthings/data-enricher/downloads","issues_url":"https://api.github.com/repos/legalthings/data-enricher/issues{/number}","pulls_url":"https://api.github.com/repos/legalthings/data-enricher/pulls{/number}","milestones_url":"https://api.github.com/repos/legalthings/data-enricher/milestones{/number}","notifications_url":"https://api.github.com/repos/legalthings/data-enricher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/legalthings/data-enricher/labels{/name}","releases_url":"https://api.github.com/repos/legalthings/data-enricher/releases{/id}","deployments_url":"https://api.github.com/repos/legalthings/data-enricher/deployments","created_at":"2015-08-14T01:13:25Z","updated_at":"2017-07-04T13:01:23Z","pushed_at":"2018-03-06T14:02:27Z","git_url":"git://github.com/legalthings/data-enricher.git","ssh_url":"git@github.com:legalthings/data-enricher.git","clone_url":"https://github.com/legalthings/data-enricher.git","svn_url":"https://github.com/legalthings/data-enricher","homepage":null,"size":98,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/legalthings/data-enricher/pulls/32"},"html":{"href":"https://github.com/legalthings/data-enricher/pull/32"},"issue":{"href":"https://api.github.com/repos/legalthings/data-enricher/issues/32"},"comments":{"href":"https://api.github.com/repos/legalthings/data-enricher/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/legalthings/data-enricher/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/legalthings/data-enricher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/legalthings/data-enricher/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/legalthings/data-enricher/statuses/c49976afe9ac30b5bd8ef58f8f9b0ab01666ac02"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":5,"additions":444,"deletions":14,"changed_files":12}}
{"actor":{"display_login":"moesjarraf"}}