{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-ecto/ecto/issues/2593","repository_url":"https://api.github.com/repos/elixir-ecto/ecto","labels_url":"https://api.github.com/repos/elixir-ecto/ecto/issues/2593/labels{/name}","comments_url":"https://api.github.com/repos/elixir-ecto/ecto/issues/2593/comments","events_url":"https://api.github.com/repos/elixir-ecto/ecto/issues/2593/events","html_url":"https://github.com/elixir-ecto/ecto/pull/2593","id":333203626,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NDczOTM5","number":2593,"title":"Automatically define schema typespecs","user":{"login":"gVolop","id":13569954,"node_id":"MDQ6VXNlcjEzNTY5OTU0","avatar_url":"https://avatars3.githubusercontent.com/u/13569954?v=4","gravatar_id":"","url":"https://api.github.com/users/gVolop","html_url":"https://github.com/gVolop","followers_url":"https://api.github.com/users/gVolop/followers","following_url":"https://api.github.com/users/gVolop/following{/other_user}","gists_url":"https://api.github.com/users/gVolop/gists{/gist_id}","starred_url":"https://api.github.com/users/gVolop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gVolop/subscriptions","organizations_url":"https://api.github.com/users/gVolop/orgs","repos_url":"https://api.github.com/users/gVolop/repos","events_url":"https://api.github.com/users/gVolop/events{/privacy}","received_events_url":"https://api.github.com/users/gVolop/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-06-18T09:55:16Z","updated_at":"2018-06-19T08:41:02Z","closed_at":"2018-06-18T10:04:23Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/elixir-ecto/ecto/pulls/2593","html_url":"https://github.com/elixir-ecto/ecto/pull/2593","diff_url":"https://github.com/elixir-ecto/ecto/pull/2593.diff","patch_url":"https://github.com/elixir-ecto/ecto/pull/2593.patch"},"body":"i'm not the owner of this code.. \r\nbut y not merge it?\r\ni think that's can be really helpfully!!"},"comment":{"url":"https://api.github.com/repos/elixir-ecto/ecto/issues/comments/398321838","html_url":"https://github.com/elixir-ecto/ecto/pull/2593#issuecomment-398321838","issue_url":"https://api.github.com/repos/elixir-ecto/ecto/issues/2593","id":398321838,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODMyMTgzOA==","user":{"login":"wojtekmach","id":76071,"node_id":"MDQ6VXNlcjc2MDcx","avatar_url":"https://avatars0.githubusercontent.com/u/76071?v=4","gravatar_id":"","url":"https://api.github.com/users/wojtekmach","html_url":"https://github.com/wojtekmach","followers_url":"https://api.github.com/users/wojtekmach/followers","following_url":"https://api.github.com/users/wojtekmach/following{/other_user}","gists_url":"https://api.github.com/users/wojtekmach/gists{/gist_id}","starred_url":"https://api.github.com/users/wojtekmach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojtekmach/subscriptions","organizations_url":"https://api.github.com/users/wojtekmach/orgs","repos_url":"https://api.github.com/users/wojtekmach/repos","events_url":"https://api.github.com/users/wojtekmach/events{/privacy}","received_events_url":"https://api.github.com/users/wojtekmach/received_events","type":"User","site_admin":false},"created_at":"2018-06-19T08:41:02Z","updated_at":"2018-06-19T08:41:02Z","author_association":"CONTRIBUTOR","body":"We shouldnt define the typespec when the type is used on a schema, rather when the type is defined (either build in or custom type) if that makes sense. Also for typespecs we need quote expressions.\r\n\r\nI have opened a PR and the discussion has been moved there: https://github.com/elixir-ecto/ecto/pull/2594"}}
{"actor":{"display_login":"wojtekmach"}}