{"action":"closed","number":494,"pull_request":{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/pulls/494","id":44880033,"html_url":"https://github.com/domaindrivendev/Swashbuckle/pull/494","diff_url":"https://github.com/domaindrivendev/Swashbuckle/pull/494.diff","patch_url":"https://github.com/domaindrivendev/Swashbuckle/pull/494.patch","issue_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/494","number":494,"state":"closed","locked":false,"title":"SwaggerDocsConfig.DescribeAllEnumsAsStrings now applied across the entire SwaggerDocument consistently","user":{"login":"Driedas","id":7829690,"avatar_url":"https://avatars.githubusercontent.com/u/7829690?v=3","gravatar_id":"","url":"https://api.github.com/users/Driedas","html_url":"https://github.com/Driedas","followers_url":"https://api.github.com/users/Driedas/followers","following_url":"https://api.github.com/users/Driedas/following{/other_user}","gists_url":"https://api.github.com/users/Driedas/gists{/gist_id}","starred_url":"https://api.github.com/users/Driedas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Driedas/subscriptions","organizations_url":"https://api.github.com/users/Driedas/orgs","repos_url":"https://api.github.com/users/Driedas/repos","events_url":"https://api.github.com/users/Driedas/events{/privacy}","received_events_url":"https://api.github.com/users/Driedas/received_events","type":"User","site_admin":false},"body":"Hey,\r\nI was trying to create examples for Schema objects, and one of these objects contained an enum. Even though the swashbuckle middleware was configured with DescribeAllEnumsAsStrings, the example for that schema object had it's enum value serialized as int, instead of string.\r\n\r\nDescribeAllEnumsAsStrings is only taken into account in SchemaRegistry.CreateEnumSchema, not when the actual SwaggerDocument instance is passed as response to Web API for JSON serialization, meaning that fields like example(s) will get serialized without considering this option.\r\n\r\nThis is my attempt to modify this behavior to work as expected, in the least intrusive way...","created_at":"2015-09-13T20:26:39Z","updated_at":"2015-09-25T21:15:11Z","closed_at":"2015-09-25T21:15:11Z","merged_at":null,"merge_commit_sha":"e4499e9606cd5a72d598ca2e6bea29b36165c599","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/pulls/494/commits","review_comments_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/pulls/494/comments","review_comment_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/494/comments","statuses_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/statuses/2440a91a80cfe3ecbd34e774fe6c2f8f9436761e","head":{"label":"Driedas:master","ref":"master","sha":"2440a91a80cfe3ecbd34e774fe6c2f8f9436761e","user":{"login":"Driedas","id":7829690,"avatar_url":"https://avatars.githubusercontent.com/u/7829690?v=3","gravatar_id":"","url":"https://api.github.com/users/Driedas","html_url":"https://github.com/Driedas","followers_url":"https://api.github.com/users/Driedas/followers","following_url":"https://api.github.com/users/Driedas/following{/other_user}","gists_url":"https://api.github.com/users/Driedas/gists{/gist_id}","starred_url":"https://api.github.com/users/Driedas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Driedas/subscriptions","organizations_url":"https://api.github.com/users/Driedas/orgs","repos_url":"https://api.github.com/users/Driedas/repos","events_url":"https://api.github.com/users/Driedas/events{/privacy}","received_events_url":"https://api.github.com/users/Driedas/received_events","type":"User","site_admin":false},"repo":{"id":42374681,"name":"Swashbuckle","full_name":"Driedas/Swashbuckle","owner":{"login":"Driedas","id":7829690,"avatar_url":"https://avatars.githubusercontent.com/u/7829690?v=3","gravatar_id":"","url":"https://api.github.com/users/Driedas","html_url":"https://github.com/Driedas","followers_url":"https://api.github.com/users/Driedas/followers","following_url":"https://api.github.com/users/Driedas/following{/other_user}","gists_url":"https://api.github.com/users/Driedas/gists{/gist_id}","starred_url":"https://api.github.com/users/Driedas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Driedas/subscriptions","organizations_url":"https://api.github.com/users/Driedas/orgs","repos_url":"https://api.github.com/users/Driedas/repos","events_url":"https://api.github.com/users/Driedas/events{/privacy}","received_events_url":"https://api.github.com/users/Driedas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Driedas/Swashbuckle","description":"Seamlessly adds a swagger to WebApi projects!","fork":true,"url":"https://api.github.com/repos/Driedas/Swashbuckle","forks_url":"https://api.github.com/repos/Driedas/Swashbuckle/forks","keys_url":"https://api.github.com/repos/Driedas/Swashbuckle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Driedas/Swashbuckle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Driedas/Swashbuckle/teams","hooks_url":"https://api.github.com/repos/Driedas/Swashbuckle/hooks","issue_events_url":"https://api.github.com/repos/Driedas/Swashbuckle/issues/events{/number}","events_url":"https://api.github.com/repos/Driedas/Swashbuckle/events","assignees_url":"https://api.github.com/repos/Driedas/Swashbuckle/assignees{/user}","branches_url":"https://api.github.com/repos/Driedas/Swashbuckle/branches{/branch}","tags_url":"https://api.github.com/repos/Driedas/Swashbuckle/tags","blobs_url":"https://api.github.com/repos/Driedas/Swashbuckle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Driedas/Swashbuckle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Driedas/Swashbuckle/git/refs{/sha}","trees_url":"https://api.github.com/repos/Driedas/Swashbuckle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Driedas/Swashbuckle/statuses/{sha}","languages_url":"https://api.github.com/repos/Driedas/Swashbuckle/languages","stargazers_url":"https://api.github.com/repos/Driedas/Swashbuckle/stargazers","contributors_url":"https://api.github.com/repos/Driedas/Swashbuckle/contributors","subscribers_url":"https://api.github.com/repos/Driedas/Swashbuckle/subscribers","subscription_url":"https://api.github.com/repos/Driedas/Swashbuckle/subscription","commits_url":"https://api.github.com/repos/Driedas/Swashbuckle/commits{/sha}","git_commits_url":"https://api.github.com/repos/Driedas/Swashbuckle/git/commits{/sha}","comments_url":"https://api.github.com/repos/Driedas/Swashbuckle/comments{/number}","issue_comment_url":"https://api.github.com/repos/Driedas/Swashbuckle/issues/comments{/number}","contents_url":"https://api.github.com/repos/Driedas/Swashbuckle/contents/{+path}","compare_url":"https://api.github.com/repos/Driedas/Swashbuckle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Driedas/Swashbuckle/merges","archive_url":"https://api.github.com/repos/Driedas/Swashbuckle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Driedas/Swashbuckle/downloads","issues_url":"https://api.github.com/repos/Driedas/Swashbuckle/issues{/number}","pulls_url":"https://api.github.com/repos/Driedas/Swashbuckle/pulls{/number}","milestones_url":"https://api.github.com/repos/Driedas/Swashbuckle/milestones{/number}","notifications_url":"https://api.github.com/repos/Driedas/Swashbuckle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Driedas/Swashbuckle/labels{/name}","releases_url":"https://api.github.com/repos/Driedas/Swashbuckle/releases{/id}","created_at":"2015-09-12T22:00:41Z","updated_at":"2015-09-12T22:00:41Z","pushed_at":"2015-09-13T20:17:45Z","git_url":"git://github.com/Driedas/Swashbuckle.git","ssh_url":"git@github.com:Driedas/Swashbuckle.git","clone_url":"https://github.com/Driedas/Swashbuckle.git","svn_url":"https://github.com/Driedas/Swashbuckle","homepage":"","size":1820,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"domaindrivendev:master","ref":"master","sha":"d774c528cc3502c73c50bc9ca967ca32a1669e03","user":{"login":"domaindrivendev","id":1434343,"avatar_url":"https://avatars.githubusercontent.com/u/1434343?v=3","gravatar_id":"","url":"https://api.github.com/users/domaindrivendev","html_url":"https://github.com/domaindrivendev","followers_url":"https://api.github.com/users/domaindrivendev/followers","following_url":"https://api.github.com/users/domaindrivendev/following{/other_user}","gists_url":"https://api.github.com/users/domaindrivendev/gists{/gist_id}","starred_url":"https://api.github.com/users/domaindrivendev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domaindrivendev/subscriptions","organizations_url":"https://api.github.com/users/domaindrivendev/orgs","repos_url":"https://api.github.com/users/domaindrivendev/repos","events_url":"https://api.github.com/users/domaindrivendev/events{/privacy}","received_events_url":"https://api.github.com/users/domaindrivendev/received_events","type":"User","site_admin":false},"repo":{"id":10750139,"name":"Swashbuckle","full_name":"domaindrivendev/Swashbuckle","owner":{"login":"domaindrivendev","id":1434343,"avatar_url":"https://avatars.githubusercontent.com/u/1434343?v=3","gravatar_id":"","url":"https://api.github.com/users/domaindrivendev","html_url":"https://github.com/domaindrivendev","followers_url":"https://api.github.com/users/domaindrivendev/followers","following_url":"https://api.github.com/users/domaindrivendev/following{/other_user}","gists_url":"https://api.github.com/users/domaindrivendev/gists{/gist_id}","starred_url":"https://api.github.com/users/domaindrivendev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domaindrivendev/subscriptions","organizations_url":"https://api.github.com/users/domaindrivendev/orgs","repos_url":"https://api.github.com/users/domaindrivendev/repos","events_url":"https://api.github.com/users/domaindrivendev/events{/privacy}","received_events_url":"https://api.github.com/users/domaindrivendev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/domaindrivendev/Swashbuckle","description":"Seamlessly adds a swagger to WebApi projects!","fork":false,"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle","forks_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/forks","keys_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/teams","hooks_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/hooks","issue_events_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/events{/number}","events_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/events","assignees_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/assignees{/user}","branches_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/branches{/branch}","tags_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/tags","blobs_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/git/refs{/sha}","trees_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/statuses/{sha}","languages_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/languages","stargazers_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/stargazers","contributors_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/contributors","subscribers_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/subscribers","subscription_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/subscription","commits_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/commits{/sha}","git_commits_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/git/commits{/sha}","comments_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/comments{/number}","issue_comment_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/comments{/number}","contents_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/contents/{+path}","compare_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/merges","archive_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/downloads","issues_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues{/number}","pulls_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/pulls{/number}","milestones_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/milestones{/number}","notifications_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/labels{/name}","releases_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/releases{/id}","created_at":"2013-06-18T00:04:27Z","updated_at":"2015-09-25T17:26:21Z","pushed_at":"2015-09-24T16:19:46Z","git_url":"git://github.com/domaindrivendev/Swashbuckle.git","ssh_url":"git@github.com:domaindrivendev/Swashbuckle.git","clone_url":"https://github.com/domaindrivendev/Swashbuckle.git","svn_url":"https://github.com/domaindrivendev/Swashbuckle","homepage":"","size":4407,"stargazers_count":580,"watchers_count":580,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":202,"mirror_url":null,"open_issues_count":56,"forks":202,"open_issues":56,"watchers":580,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/domaindrivendev/Swashbuckle/pulls/494"},"html":{"href":"https://github.com/domaindrivendev/Swashbuckle/pull/494"},"issue":{"href":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/494"},"comments":{"href":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/494/comments"},"review_comments":{"href":"https://api.github.com/repos/domaindrivendev/Swashbuckle/pulls/494/comments"},"review_comment":{"href":"https://api.github.com/repos/domaindrivendev/Swashbuckle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/domaindrivendev/Swashbuckle/pulls/494/commits"},"statuses":{"href":"https://api.github.com/repos/domaindrivendev/Swashbuckle/statuses/2440a91a80cfe3ecbd34e774fe6c2f8f9436761e"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":22,"deletions":5,"changed_files":3}}