{"action":"created","comment":{"url":"https://api.github.com/repos/go-swagger/go-swagger/pulls/comments/65912294","id":65912294,"diff_hunk":"@@ -51,13 +174,152 @@ func (m *Item) Validate(formats strfmt.Registry) error {\n \n func (m *Item) validateDescription(formats strfmt.Registry) error {\n \n-\tif err := validate.Required(\"description\", \"body\", m.Description); err != nil {\n-\t\treturn err\n+\tif !m.HasDescriptionValue() {\n+\t\treturn errors.Required(\"description\", \"body\")\n \t}\n \n-\tif err := validate.MinLength(\"description\", \"body\", string(*m.Description), 1); err != nil {\n+\tif err := validate.MinLength(\"description\", \"body\", m.Description, 1); err != nil {\n \t\treturn err\n \t}\n \n \treturn nil\n }\n+\n+func (m Item) MarshalEasyJSON(out *jwriter.Writer) {\n+\tout.RawByte('{')\n+\tfirst := true\n+\t_ = first\n+\tif m.Completed || m.__setValues.Test(0) {\n+\t\tif !first {\n+\t\t\tout.RawByte(',')\n+\t\t}\n+\t\tfirst = false\n+\t\tout.RawString(\"\\\"completed\\\":\")\n+\t\tif nullableItemBitmap.Test(0) && m.__nulls.Test(0) {\n+\t\t\tout.RawString(\"null\")\n+\t\t} else {\n+\t\t\tout.Bool(m.Completed)\n+\t\t}\n+\t}\n+\tif m.Description != \"\" || m.__setValues.Test(1) {\n+\t\tif !first {\n+\t\t\tout.RawByte(',')\n+\t\t}\n+\t\tfirst = false\n+\t\tout.RawString(\"\\\"description\\\":\")\n+\t\tif nullableItemBitmap.Test(1) && m.__nulls.Test(1) {\n+\t\t\tout.RawString(\"null\")\n+\t\t} else {\n+\t\t\tout.String(m.Description)\n+\t\t}\n+\t}\n+\tif m.ID != 0 || m.__setValues.Test(2) {\n+\t\tif !first {\n+\t\t\tout.RawByte(',')\n+\t\t}\n+\t\tfirst = false\n+\t\tout.RawString(\"\\\"id\\\":\")\n+\t\tout.Float32\n+\t\tif nullableItemBitmap.Test(1) && m.__nulls.Test(1) {\n+\t\t\tout.RawString(\"null\")\n+\t\t} else {\n+\t\t\tout.Int64(m.ID)\n+\t\t}\n+\t}\n+\tout.RawByte('}')\n+}\n+\n+func (m Item) MarshalJSON() ([]byte, error) {\n+\tout := jwriter.Writer{}\n+\tm.MarshalEasyJSON(&out)\n+\treturn out.BuildBytes()\n+}\n+\n+func (m *Item) UnmarshalEasyJSON(in *jlexer.Lexer) {\n+\tm.__nulls = *bitset.New(3)\n+\tm.__setValues = *bitset.New(3)\n+\tif in.IsNull() {\n+\t\tin.Skip()\n+\t\treturn\n+\t}\n+\tin.Delim('{')\n+\tfor !in.IsDelim('}') {\n+\t\tkey := in.UnsafeString()\n+\t\tin.WantColon()\n+\t\tif in.IsNull() {\n+\t\t\tswitch key {\n+\t\t\tcase \"id\":\n+\t\t\t\tm.ID = 0\n+\t\t\t\tm.__setValues.Set(2)\n+\t\t\t\tm.__nulls.Set(2)\n+\t\t\tcase \"description\":\n+\t\t\t\tm.Description = \"\"\n+\t\t\t\tm.__setValues.Set(1)\n+\t\t\t\tm.__nulls.Set(1)\n+\t\t\tcase \"completed\":\n+\t\t\t\tm.Completed = false\n+\t\t\t\tm.__setValues.Set(0)\n+\t\t\t\tm.__nulls.Set(0)\n+\t\t\tdefault:\n+\t\t\t\tin.SkipRecursive()\n+\t\t\t}\n+\t\t\tin.Skip()\n+\t\t\tin.WantComma()\n+\t\t\tcontinue\n+\t\t}\n+\t\tswitch key {\n+\t\tcase \"id\":\n+\t\t\tm.ID = in.Int64()\n+\t\t\tm.__setValues.Set(2)\n+\t\t\tm.__nulls.Clear(2)\n+\t\tcase \"description\":\n+\t\t\tm.Description = in.String()\n+\t\t\tm.__setValues.Set(1)\n+\t\t\tm.__nulls.Clear(1)\n+\t\tcase \"completed\":\n+\t\t\tm.Completed = in.Bool()\n+\t\t\tm.__setValues.Set(0)\n+\t\t\tm.__nulls.Clear(0)\n+\t\tdefault:\n+\t\t\tin.SkipRecursive()\n+\t\t}\n+\t\tin.WantComma()\n+\t}\n+\tin.Delim('}')\n+}\n+\n+func (m *Item) UnmarshalJSON(data []byte) error {\n+\tin := jlexer.Lexer{Data: data}\n+\tm.UnmarshalEasyJSON(&in)\n+\treturn in.Error()\n+}\n+\n+func (m *Item) PatchWith(other *Item) error {\n+\tif other.IsCompletedSet() {\n+\t\tm.SetCompleted(other.Completed)\n+\t}\n+\n+\tif other.IsDescriptionSet() {\n+\t\tif other.IsDescriptionNil() {\n+\t\t\tother.SetDescription(nil)\n+\t\t} else {\n+\t\t\tother.SetDescription(&other.Description)\n+\t\t}\n+\t}\n+\n+\tif other.IsIDSet() {\n+\t\tif other.ID == 0 {\n+\t\t\tm.__setValues.Clear(2)\n+\t\t\tm.ID = 0\n+\t\t} else {\n+\t\t\tm.SetID(m.ID)\n+\t\t}\n+\t}\n+\treturn nil\n+}\n+\n+func (m *Item) Clone() *Item {","path":"examples/todo-list/models/item.go","position":308,"original_position":308,"commit_id":"57f5b555f552dd9e2192bd340f7c5de19089d5aa","original_commit_id":"57f5b555f552dd9e2192bd340f7c5de19089d5aa","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"exported method Item.Clone should have comment or be unexported","created_at":"2016-06-06T15:33:05Z","updated_at":"2016-06-06T15:33:05Z","html_url":"https://github.com/go-swagger/go-swagger/pull/557#discussion_r65912294","pull_request_url":"https://api.github.com/repos/go-swagger/go-swagger/pulls/557","_links":{"self":{"href":"https://api.github.com/repos/go-swagger/go-swagger/pulls/comments/65912294"},"html":{"href":"https://github.com/go-swagger/go-swagger/pull/557#discussion_r65912294"},"pull_request":{"href":"https://api.github.com/repos/go-swagger/go-swagger/pulls/557"}}},"pull_request":{"url":"https://api.github.com/repos/go-swagger/go-swagger/pulls/557","id":72729722,"html_url":"https://github.com/go-swagger/go-swagger/pull/557","diff_url":"https://github.com/go-swagger/go-swagger/pull/557.diff","patch_url":"https://github.com/go-swagger/go-swagger/pull/557.patch","issue_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/557","number":557,"state":"open","locked":false,"title":"[WIP] 476 lift pointers","user":{"login":"casualjim","id":456109,"avatar_url":"https://avatars.githubusercontent.com/u/456109?v=3","gravatar_id":"","url":"https://api.github.com/users/casualjim","html_url":"https://github.com/casualjim","followers_url":"https://api.github.com/users/casualjim/followers","following_url":"https://api.github.com/users/casualjim/following{/other_user}","gists_url":"https://api.github.com/users/casualjim/gists{/gist_id}","starred_url":"https://api.github.com/users/casualjim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casualjim/subscriptions","organizations_url":"https://api.github.com/users/casualjim/orgs","repos_url":"https://api.github.com/users/casualjim/repos","events_url":"https://api.github.com/users/casualjim/events{/privacy}","received_events_url":"https://api.github.com/users/casualjim/received_events","type":"User","site_admin":false},"body":"Starts implementing the items discussed in #476 \r\n\r\nFor this to work we need a custom serializer for all types, not just the \"special\" ones. So most of the work is around generating a serializer, to a lesser extent it is about pointer/no pointer decisions at render time.","created_at":"2016-06-06T15:32:55Z","updated_at":"2016-06-06T15:33:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"98f6d2145c4d5110a79fcc34c3dbab5af64b76cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/go-swagger/go-swagger/pulls/557/commits","review_comments_url":"https://api.github.com/repos/go-swagger/go-swagger/pulls/557/comments","review_comment_url":"https://api.github.com/repos/go-swagger/go-swagger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/557/comments","statuses_url":"https://api.github.com/repos/go-swagger/go-swagger/statuses/57f5b555f552dd9e2192bd340f7c5de19089d5aa","head":{"label":"go-swagger:476-lift-pointers","ref":"476-lift-pointers","sha":"57f5b555f552dd9e2192bd340f7c5de19089d5aa","user":{"login":"go-swagger","id":10362650,"avatar_url":"https://avatars.githubusercontent.com/u/10362650?v=3","gravatar_id":"","url":"https://api.github.com/users/go-swagger","html_url":"https://github.com/go-swagger","followers_url":"https://api.github.com/users/go-swagger/followers","following_url":"https://api.github.com/users/go-swagger/following{/other_user}","gists_url":"https://api.github.com/users/go-swagger/gists{/gist_id}","starred_url":"https://api.github.com/users/go-swagger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-swagger/subscriptions","organizations_url":"https://api.github.com/users/go-swagger/orgs","repos_url":"https://api.github.com/users/go-swagger/repos","events_url":"https://api.github.com/users/go-swagger/events{/privacy}","received_events_url":"https://api.github.com/users/go-swagger/received_events","type":"Organization","site_admin":false},"repo":{"id":26726495,"name":"go-swagger","full_name":"go-swagger/go-swagger","owner":{"login":"go-swagger","id":10362650,"avatar_url":"https://avatars.githubusercontent.com/u/10362650?v=3","gravatar_id":"","url":"https://api.github.com/users/go-swagger","html_url":"https://github.com/go-swagger","followers_url":"https://api.github.com/users/go-swagger/followers","following_url":"https://api.github.com/users/go-swagger/following{/other_user}","gists_url":"https://api.github.com/users/go-swagger/gists{/gist_id}","starred_url":"https://api.github.com/users/go-swagger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-swagger/subscriptions","organizations_url":"https://api.github.com/users/go-swagger/orgs","repos_url":"https://api.github.com/users/go-swagger/repos","events_url":"https://api.github.com/users/go-swagger/events{/privacy}","received_events_url":"https://api.github.com/users/go-swagger/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/go-swagger/go-swagger","description":"Swagger 2.0 implementation for go","fork":false,"url":"https://api.github.com/repos/go-swagger/go-swagger","forks_url":"https://api.github.com/repos/go-swagger/go-swagger/forks","keys_url":"https://api.github.com/repos/go-swagger/go-swagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/go-swagger/go-swagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/go-swagger/go-swagger/teams","hooks_url":"https://api.github.com/repos/go-swagger/go-swagger/hooks","issue_events_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/events{/number}","events_url":"https://api.github.com/repos/go-swagger/go-swagger/events","assignees_url":"https://api.github.com/repos/go-swagger/go-swagger/assignees{/user}","branches_url":"https://api.github.com/repos/go-swagger/go-swagger/branches{/branch}","tags_url":"https://api.github.com/repos/go-swagger/go-swagger/tags","blobs_url":"https://api.github.com/repos/go-swagger/go-swagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/go-swagger/go-swagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/go-swagger/go-swagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/go-swagger/go-swagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/go-swagger/go-swagger/statuses/{sha}","languages_url":"https://api.github.com/repos/go-swagger/go-swagger/languages","stargazers_url":"https://api.github.com/repos/go-swagger/go-swagger/stargazers","contributors_url":"https://api.github.com/repos/go-swagger/go-swagger/contributors","subscribers_url":"https://api.github.com/repos/go-swagger/go-swagger/subscribers","subscription_url":"https://api.github.com/repos/go-swagger/go-swagger/subscription","commits_url":"https://api.github.com/repos/go-swagger/go-swagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/go-swagger/go-swagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/go-swagger/go-swagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/comments{/number}","contents_url":"https://api.github.com/repos/go-swagger/go-swagger/contents/{+path}","compare_url":"https://api.github.com/repos/go-swagger/go-swagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/go-swagger/go-swagger/merges","archive_url":"https://api.github.com/repos/go-swagger/go-swagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/go-swagger/go-swagger/downloads","issues_url":"https://api.github.com/repos/go-swagger/go-swagger/issues{/number}","pulls_url":"https://api.github.com/repos/go-swagger/go-swagger/pulls{/number}","milestones_url":"https://api.github.com/repos/go-swagger/go-swagger/milestones{/number}","notifications_url":"https://api.github.com/repos/go-swagger/go-swagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/go-swagger/go-swagger/labels{/name}","releases_url":"https://api.github.com/repos/go-swagger/go-swagger/releases{/id}","deployments_url":"https://api.github.com/repos/go-swagger/go-swagger/deployments","created_at":"2014-11-16T20:13:15Z","updated_at":"2016-06-06T02:35:57Z","pushed_at":"2016-06-06T15:32:56Z","git_url":"git://github.com/go-swagger/go-swagger.git","ssh_url":"git@github.com:go-swagger/go-swagger.git","clone_url":"https://github.com/go-swagger/go-swagger.git","svn_url":"https://github.com/go-swagger/go-swagger","homepage":"https://goswagger.io","size":20399,"stargazers_count":555,"watchers_count":555,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":121,"mirror_url":null,"open_issues_count":106,"forks":121,"open_issues":106,"watchers":555,"default_branch":"master"}},"base":{"label":"go-swagger:master","ref":"master","sha":"e1f2699cc1bcfec37b02a86585ee6c6a436c24fb","user":{"login":"go-swagger","id":10362650,"avatar_url":"https://avatars.githubusercontent.com/u/10362650?v=3","gravatar_id":"","url":"https://api.github.com/users/go-swagger","html_url":"https://github.com/go-swagger","followers_url":"https://api.github.com/users/go-swagger/followers","following_url":"https://api.github.com/users/go-swagger/following{/other_user}","gists_url":"https://api.github.com/users/go-swagger/gists{/gist_id}","starred_url":"https://api.github.com/users/go-swagger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-swagger/subscriptions","organizations_url":"https://api.github.com/users/go-swagger/orgs","repos_url":"https://api.github.com/users/go-swagger/repos","events_url":"https://api.github.com/users/go-swagger/events{/privacy}","received_events_url":"https://api.github.com/users/go-swagger/received_events","type":"Organization","site_admin":false},"repo":{"id":26726495,"name":"go-swagger","full_name":"go-swagger/go-swagger","owner":{"login":"go-swagger","id":10362650,"avatar_url":"https://avatars.githubusercontent.com/u/10362650?v=3","gravatar_id":"","url":"https://api.github.com/users/go-swagger","html_url":"https://github.com/go-swagger","followers_url":"https://api.github.com/users/go-swagger/followers","following_url":"https://api.github.com/users/go-swagger/following{/other_user}","gists_url":"https://api.github.com/users/go-swagger/gists{/gist_id}","starred_url":"https://api.github.com/users/go-swagger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-swagger/subscriptions","organizations_url":"https://api.github.com/users/go-swagger/orgs","repos_url":"https://api.github.com/users/go-swagger/repos","events_url":"https://api.github.com/users/go-swagger/events{/privacy}","received_events_url":"https://api.github.com/users/go-swagger/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/go-swagger/go-swagger","description":"Swagger 2.0 implementation for go","fork":false,"url":"https://api.github.com/repos/go-swagger/go-swagger","forks_url":"https://api.github.com/repos/go-swagger/go-swagger/forks","keys_url":"https://api.github.com/repos/go-swagger/go-swagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/go-swagger/go-swagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/go-swagger/go-swagger/teams","hooks_url":"https://api.github.com/repos/go-swagger/go-swagger/hooks","issue_events_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/events{/number}","events_url":"https://api.github.com/repos/go-swagger/go-swagger/events","assignees_url":"https://api.github.com/repos/go-swagger/go-swagger/assignees{/user}","branches_url":"https://api.github.com/repos/go-swagger/go-swagger/branches{/branch}","tags_url":"https://api.github.com/repos/go-swagger/go-swagger/tags","blobs_url":"https://api.github.com/repos/go-swagger/go-swagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/go-swagger/go-swagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/go-swagger/go-swagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/go-swagger/go-swagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/go-swagger/go-swagger/statuses/{sha}","languages_url":"https://api.github.com/repos/go-swagger/go-swagger/languages","stargazers_url":"https://api.github.com/repos/go-swagger/go-swagger/stargazers","contributors_url":"https://api.github.com/repos/go-swagger/go-swagger/contributors","subscribers_url":"https://api.github.com/repos/go-swagger/go-swagger/subscribers","subscription_url":"https://api.github.com/repos/go-swagger/go-swagger/subscription","commits_url":"https://api.github.com/repos/go-swagger/go-swagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/go-swagger/go-swagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/go-swagger/go-swagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/comments{/number}","contents_url":"https://api.github.com/repos/go-swagger/go-swagger/contents/{+path}","compare_url":"https://api.github.com/repos/go-swagger/go-swagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/go-swagger/go-swagger/merges","archive_url":"https://api.github.com/repos/go-swagger/go-swagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/go-swagger/go-swagger/downloads","issues_url":"https://api.github.com/repos/go-swagger/go-swagger/issues{/number}","pulls_url":"https://api.github.com/repos/go-swagger/go-swagger/pulls{/number}","milestones_url":"https://api.github.com/repos/go-swagger/go-swagger/milestones{/number}","notifications_url":"https://api.github.com/repos/go-swagger/go-swagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/go-swagger/go-swagger/labels{/name}","releases_url":"https://api.github.com/repos/go-swagger/go-swagger/releases{/id}","deployments_url":"https://api.github.com/repos/go-swagger/go-swagger/deployments","created_at":"2014-11-16T20:13:15Z","updated_at":"2016-06-06T02:35:57Z","pushed_at":"2016-06-06T15:32:56Z","git_url":"git://github.com/go-swagger/go-swagger.git","ssh_url":"git@github.com:go-swagger/go-swagger.git","clone_url":"https://github.com/go-swagger/go-swagger.git","svn_url":"https://github.com/go-swagger/go-swagger","homepage":"https://goswagger.io","size":20399,"stargazers_count":555,"watchers_count":555,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":121,"mirror_url":null,"open_issues_count":106,"forks":121,"open_issues":106,"watchers":555,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/go-swagger/go-swagger/pulls/557"},"html":{"href":"https://github.com/go-swagger/go-swagger/pull/557"},"issue":{"href":"https://api.github.com/repos/go-swagger/go-swagger/issues/557"},"comments":{"href":"https://api.github.com/repos/go-swagger/go-swagger/issues/557/comments"},"review_comments":{"href":"https://api.github.com/repos/go-swagger/go-swagger/pulls/557/comments"},"review_comment":{"href":"https://api.github.com/repos/go-swagger/go-swagger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/go-swagger/go-swagger/pulls/557/commits"},"statuses":{"href":"https://api.github.com/repos/go-swagger/go-swagger/statuses/57f5b555f552dd9e2192bd340f7c5de19089d5aa"}}}}
{"actor":{"display_login":"houndci-bot"}}