{"action":"created","comment":{"url":"https://api.github.com/repos/marmelab/ng-admin/pulls/comments/23406225","id":23406225,"diff_hunk":"@@ -40,6 +40,7 @@ define(function (require) {\n \n     MainModule.directive('maDashboardPanel', require('ng-admin/Main/component/directive/maDashboardPanel'));\n     MainModule.directive('menu', require('ng-admin/Main/component/directive/Menu'));\n+    MainModule.directive('maJsonValidator', require('ng-admin/Main/component/directive/maJsonValidator'));","path":"src/javascripts/ng-admin/Main/MainModule.js","position":4,"original_position":4,"commit_id":"5e1f0b9457ccba137415aab50869e114fc417e96","original_commit_id":"5e1f0b9457ccba137415aab50869e114fc417e96","user":{"login":"fzaninotto","id":99944,"avatar_url":"https://avatars.githubusercontent.com/u/99944?v=3","gravatar_id":"","url":"https://api.github.com/users/fzaninotto","html_url":"https://github.com/fzaninotto","followers_url":"https://api.github.com/users/fzaninotto/followers","following_url":"https://api.github.com/users/fzaninotto/following{/other_user}","gists_url":"https://api.github.com/users/fzaninotto/gists{/gist_id}","starred_url":"https://api.github.com/users/fzaninotto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fzaninotto/subscriptions","organizations_url":"https://api.github.com/users/fzaninotto/orgs","repos_url":"https://api.github.com/users/fzaninotto/repos","events_url":"https://api.github.com/users/fzaninotto/events{/privacy}","received_events_url":"https://api.github.com/users/fzaninotto/received_events","type":"User","site_admin":false},"body":"Why not under crud/validator/maJsonValidator ?","created_at":"2015-01-22T20:18:41Z","updated_at":"2015-01-22T20:18:41Z","html_url":"https://github.com/marmelab/ng-admin/pull/243#discussion_r23406225","pull_request_url":"https://api.github.com/repos/marmelab/ng-admin/pulls/243","_links":{"self":{"href":"https://api.github.com/repos/marmelab/ng-admin/pulls/comments/23406225"},"html":{"href":"https://github.com/marmelab/ng-admin/pull/243#discussion_r23406225"},"pull_request":{"href":"https://api.github.com/repos/marmelab/ng-admin/pulls/243"}}},"pull_request":{"url":"https://api.github.com/repos/marmelab/ng-admin/pulls/243","id":27658150,"html_url":"https://github.com/marmelab/ng-admin/pull/243","diff_url":"https://github.com/marmelab/ng-admin/pull/243.diff","patch_url":"https://github.com/marmelab/ng-admin/pull/243.patch","issue_url":"https://api.github.com/repos/marmelab/ng-admin/issues/243","number":243,"state":"open","locked":false,"title":"[RFR] JSON field","user":{"login":"fzaninotto","id":99944,"avatar_url":"https://avatars.githubusercontent.com/u/99944?v=3","gravatar_id":"","url":"https://api.github.com/users/fzaninotto","html_url":"https://github.com/fzaninotto","followers_url":"https://api.github.com/users/fzaninotto/followers","following_url":"https://api.github.com/users/fzaninotto/following{/other_user}","gists_url":"https://api.github.com/users/fzaninotto/gists{/gist_id}","starred_url":"https://api.github.com/users/fzaninotto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fzaninotto/subscriptions","organizations_url":"https://api.github.com/users/fzaninotto/orgs","repos_url":"https://api.github.com/users/fzaninotto/repos","events_url":"https://api.github.com/users/fzaninotto/events{/privacy}","received_events_url":"https://api.github.com/users/fzaninotto/received_events","type":"User","site_admin":false},"body":"- [x] Add JSON field\r\n- [x] Validate JSON format before submission\r\n- [x] add JSON column\r\n- [x] Add JSON formatter to improve edition usability\r\n\r\nShow view:\r\n![image](https://cloud.githubusercontent.com/assets/582446/5858057/71008fa8-a250-11e4-9e1c-5268a58cee9f.png)\r\n\r\nEdit view:\r\n![image](https://cloud.githubusercontent.com/assets/582446/5858069/9267231e-a250-11e4-9743-004b1f988463.png)\r\n\r\nEdit view error:\r\n![image](https://cloud.githubusercontent.com/assets/582446/5858081/ab3164d6-a250-11e4-9022-48163c8d5d3d.png)\r\n\r\nCloses #224 ","created_at":"2015-01-20T07:21:43Z","updated_at":"2015-01-22T20:18:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3805767ae12c08301984f8bab3ee3d5335bf1f18","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/marmelab/ng-admin/pulls/243/commits","review_comments_url":"https://api.github.com/repos/marmelab/ng-admin/pulls/243/comments","review_comment_url":"https://api.github.com/repos/marmelab/ng-admin/pulls/comments/{number}","comments_url":"https://api.github.com/repos/marmelab/ng-admin/issues/243/comments","statuses_url":"https://api.github.com/repos/marmelab/ng-admin/statuses/5e1f0b9457ccba137415aab50869e114fc417e96","head":{"label":"marmelab:json_field","ref":"json_field","sha":"5e1f0b9457ccba137415aab50869e114fc417e96","user":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"repo":{"id":20059361,"name":"ng-admin","full_name":"marmelab/ng-admin","owner":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/marmelab/ng-admin","description":"Add an AngularJS admin GUI to any RESTful API","fork":false,"url":"https://api.github.com/repos/marmelab/ng-admin","forks_url":"https://api.github.com/repos/marmelab/ng-admin/forks","keys_url":"https://api.github.com/repos/marmelab/ng-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marmelab/ng-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marmelab/ng-admin/teams","hooks_url":"https://api.github.com/repos/marmelab/ng-admin/hooks","issue_events_url":"https://api.github.com/repos/marmelab/ng-admin/issues/events{/number}","events_url":"https://api.github.com/repos/marmelab/ng-admin/events","assignees_url":"https://api.github.com/repos/marmelab/ng-admin/assignees{/user}","branches_url":"https://api.github.com/repos/marmelab/ng-admin/branches{/branch}","tags_url":"https://api.github.com/repos/marmelab/ng-admin/tags","blobs_url":"https://api.github.com/repos/marmelab/ng-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marmelab/ng-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marmelab/ng-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/marmelab/ng-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marmelab/ng-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/marmelab/ng-admin/languages","stargazers_url":"https://api.github.com/repos/marmelab/ng-admin/stargazers","contributors_url":"https://api.github.com/repos/marmelab/ng-admin/contributors","subscribers_url":"https://api.github.com/repos/marmelab/ng-admin/subscribers","subscription_url":"https://api.github.com/repos/marmelab/ng-admin/subscription","commits_url":"https://api.github.com/repos/marmelab/ng-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/marmelab/ng-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/marmelab/ng-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/marmelab/ng-admin/issues/comments/{number}","contents_url":"https://api.github.com/repos/marmelab/ng-admin/contents/{+path}","compare_url":"https://api.github.com/repos/marmelab/ng-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marmelab/ng-admin/merges","archive_url":"https://api.github.com/repos/marmelab/ng-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marmelab/ng-admin/downloads","issues_url":"https://api.github.com/repos/marmelab/ng-admin/issues{/number}","pulls_url":"https://api.github.com/repos/marmelab/ng-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/marmelab/ng-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/marmelab/ng-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marmelab/ng-admin/labels{/name}","releases_url":"https://api.github.com/repos/marmelab/ng-admin/releases{/id}","created_at":"2014-05-22T12:00:10Z","updated_at":"2015-01-22T18:20:32Z","pushed_at":"2015-01-22T20:13:25Z","git_url":"git://github.com/marmelab/ng-admin.git","ssh_url":"git@github.com:marmelab/ng-admin.git","clone_url":"https://github.com/marmelab/ng-admin.git","svn_url":"https://github.com/marmelab/ng-admin","homepage":"http://ng-admin.marmelab.com/","size":8824,"stargazers_count":1157,"watchers_count":1157,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":85,"mirror_url":null,"open_issues_count":23,"forks":85,"open_issues":23,"watchers":1157,"default_branch":"master"}},"base":{"label":"marmelab:master","ref":"master","sha":"840da80389e4f7084ed27b275ea6fa72c2a99aa3","user":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"repo":{"id":20059361,"name":"ng-admin","full_name":"marmelab/ng-admin","owner":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/marmelab/ng-admin","description":"Add an AngularJS admin GUI to any RESTful API","fork":false,"url":"https://api.github.com/repos/marmelab/ng-admin","forks_url":"https://api.github.com/repos/marmelab/ng-admin/forks","keys_url":"https://api.github.com/repos/marmelab/ng-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marmelab/ng-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marmelab/ng-admin/teams","hooks_url":"https://api.github.com/repos/marmelab/ng-admin/hooks","issue_events_url":"https://api.github.com/repos/marmelab/ng-admin/issues/events{/number}","events_url":"https://api.github.com/repos/marmelab/ng-admin/events","assignees_url":"https://api.github.com/repos/marmelab/ng-admin/assignees{/user}","branches_url":"https://api.github.com/repos/marmelab/ng-admin/branches{/branch}","tags_url":"https://api.github.com/repos/marmelab/ng-admin/tags","blobs_url":"https://api.github.com/repos/marmelab/ng-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marmelab/ng-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marmelab/ng-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/marmelab/ng-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marmelab/ng-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/marmelab/ng-admin/languages","stargazers_url":"https://api.github.com/repos/marmelab/ng-admin/stargazers","contributors_url":"https://api.github.com/repos/marmelab/ng-admin/contributors","subscribers_url":"https://api.github.com/repos/marmelab/ng-admin/subscribers","subscription_url":"https://api.github.com/repos/marmelab/ng-admin/subscription","commits_url":"https://api.github.com/repos/marmelab/ng-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/marmelab/ng-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/marmelab/ng-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/marmelab/ng-admin/issues/comments/{number}","contents_url":"https://api.github.com/repos/marmelab/ng-admin/contents/{+path}","compare_url":"https://api.github.com/repos/marmelab/ng-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marmelab/ng-admin/merges","archive_url":"https://api.github.com/repos/marmelab/ng-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marmelab/ng-admin/downloads","issues_url":"https://api.github.com/repos/marmelab/ng-admin/issues{/number}","pulls_url":"https://api.github.com/repos/marmelab/ng-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/marmelab/ng-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/marmelab/ng-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marmelab/ng-admin/labels{/name}","releases_url":"https://api.github.com/repos/marmelab/ng-admin/releases{/id}","created_at":"2014-05-22T12:00:10Z","updated_at":"2015-01-22T18:20:32Z","pushed_at":"2015-01-22T20:13:25Z","git_url":"git://github.com/marmelab/ng-admin.git","ssh_url":"git@github.com:marmelab/ng-admin.git","clone_url":"https://github.com/marmelab/ng-admin.git","svn_url":"https://github.com/marmelab/ng-admin","homepage":"http://ng-admin.marmelab.com/","size":8824,"stargazers_count":1157,"watchers_count":1157,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":85,"mirror_url":null,"open_issues_count":23,"forks":85,"open_issues":23,"watchers":1157,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marmelab/ng-admin/pulls/243"},"html":{"href":"https://github.com/marmelab/ng-admin/pull/243"},"issue":{"href":"https://api.github.com/repos/marmelab/ng-admin/issues/243"},"comments":{"href":"https://api.github.com/repos/marmelab/ng-admin/issues/243/comments"},"review_comments":{"href":"https://api.github.com/repos/marmelab/ng-admin/pulls/243/comments"},"review_comment":{"href":"https://api.github.com/repos/marmelab/ng-admin/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/marmelab/ng-admin/pulls/243/commits"},"statuses":{"href":"https://api.github.com/repos/marmelab/ng-admin/statuses/5e1f0b9457ccba137415aab50869e114fc417e96"}}}}