{"action":"created","issue":{"url":"https://api.github.com/repos/inaka/Dayron/issues/53","repository_url":"https://api.github.com/repos/inaka/Dayron","labels_url":"https://api.github.com/repos/inaka/Dayron/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/inaka/Dayron/issues/53/comments","events_url":"https://api.github.com/repos/inaka/Dayron/issues/53/events","html_url":"https://github.com/inaka/Dayron/pull/53","id":174511791,"number":53,"title":"[#49] Mix tasks to generate a Model/Resource","user":{"login":"tiagoengel","id":1457263,"avatar_url":"https://avatars.githubusercontent.com/u/1457263?v=3","gravatar_id":"","url":"https://api.github.com/users/tiagoengel","html_url":"https://github.com/tiagoengel","followers_url":"https://api.github.com/users/tiagoengel/followers","following_url":"https://api.github.com/users/tiagoengel/following{/other_user}","gists_url":"https://api.github.com/users/tiagoengel/gists{/gist_id}","starred_url":"https://api.github.com/users/tiagoengel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiagoengel/subscriptions","organizations_url":"https://api.github.com/users/tiagoengel/orgs","repos_url":"https://api.github.com/users/tiagoengel/repos","events_url":"https://api.github.com/users/tiagoengel/events{/privacy}","received_events_url":"https://api.github.com/users/tiagoengel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"flaviogranero","id":27479,"avatar_url":"https://avatars.githubusercontent.com/u/27479?v=3","gravatar_id":"","url":"https://api.github.com/users/flaviogranero","html_url":"https://github.com/flaviogranero","followers_url":"https://api.github.com/users/flaviogranero/followers","following_url":"https://api.github.com/users/flaviogranero/following{/other_user}","gists_url":"https://api.github.com/users/flaviogranero/gists{/gist_id}","starred_url":"https://api.github.com/users/flaviogranero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flaviogranero/subscriptions","organizations_url":"https://api.github.com/users/flaviogranero/orgs","repos_url":"https://api.github.com/users/flaviogranero/repos","events_url":"https://api.github.com/users/flaviogranero/events{/privacy}","received_events_url":"https://api.github.com/users/flaviogranero/received_events","type":"User","site_admin":false},"assignees":[{"login":"flaviogranero","id":27479,"avatar_url":"https://avatars.githubusercontent.com/u/27479?v=3","gravatar_id":"","url":"https://api.github.com/users/flaviogranero","html_url":"https://github.com/flaviogranero","followers_url":"https://api.github.com/users/flaviogranero/followers","following_url":"https://api.github.com/users/flaviogranero/following{/other_user}","gists_url":"https://api.github.com/users/flaviogranero/gists{/gist_id}","starred_url":"https://api.github.com/users/flaviogranero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flaviogranero/subscriptions","organizations_url":"https://api.github.com/users/flaviogranero/orgs","repos_url":"https://api.github.com/users/flaviogranero/repos","events_url":"https://api.github.com/users/flaviogranero/events{/privacy}","received_events_url":"https://api.github.com/users/flaviogranero/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-09-01T12:35:12Z","updated_at":"2016-09-01T14:07:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/inaka/Dayron/pulls/53","html_url":"https://github.com/inaka/Dayron/pull/53","diff_url":"https://github.com/inaka/Dayron/pull/53.diff","patch_url":"https://github.com/inaka/Dayron/pull/53.patch"},"body":"The task can be tested in the example app with ```mix dayron.gen.model User user name age:integer```\r\n\r\n~~I still need to update the README with this task usage but you can review the code in the meantime.~~\r\n\r\nAbout using a json schema to generate the models, I think it can be done relatively easily, [this](https://github.com/jonasschmidt/ex_json_schema) elixir lib does json schema validation, we can use it directly or as inspiration. However I think is better to add support for relationships first because if the user wants to use a schema he probably have a very complex model with relationships."},"comment":{"url":"https://api.github.com/repos/inaka/Dayron/issues/comments/244089806","html_url":"https://github.com/inaka/Dayron/pull/53#issuecomment-244089806","issue_url":"https://api.github.com/repos/inaka/Dayron/issues/53","id":244089806,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T14:07:44Z","updated_at":"2016-09-01T14:07:44Z","body":"\n[![Coverage Status](https://coveralls.io/builds/7706326/badge)](https://coveralls.io/builds/7706326)\n\nCoverage remained the same at 100.0% when pulling **d3f8a1063f9736265d892aec6b5b6a7a707d76d9 on tiagoengel:generate_model_task** into **478d9bdffad4411ca146a8e0e5c2e7402971b55f on inaka:master**.\n"}}
{"actor":{"display_login":"coveralls"}}