{"action":"created","issue":{"url":"https://api.github.com/repos/NSwag/NSwag/issues/609","repository_url":"https://api.github.com/repos/NSwag/NSwag","labels_url":"https://api.github.com/repos/NSwag/NSwag/issues/609/labels{/name}","comments_url":"https://api.github.com/repos/NSwag/NSwag/issues/609/comments","events_url":"https://api.github.com/repos/NSwag/NSwag/issues/609/events","html_url":"https://github.com/NSwag/NSwag/issues/609","id":208961724,"number":609,"title":"Custom JSON serializer","user":{"login":"danielreuterwall","id":1272481,"avatar_url":"https://avatars3.githubusercontent.com/u/1272481?v=3","gravatar_id":"","url":"https://api.github.com/users/danielreuterwall","html_url":"https://github.com/danielreuterwall","followers_url":"https://api.github.com/users/danielreuterwall/followers","following_url":"https://api.github.com/users/danielreuterwall/following{/other_user}","gists_url":"https://api.github.com/users/danielreuterwall/gists{/gist_id}","starred_url":"https://api.github.com/users/danielreuterwall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielreuterwall/subscriptions","organizations_url":"https://api.github.com/users/danielreuterwall/orgs","repos_url":"https://api.github.com/users/danielreuterwall/repos","events_url":"https://api.github.com/users/danielreuterwall/events{/privacy}","received_events_url":"https://api.github.com/users/danielreuterwall/received_events","type":"User","site_admin":false},"labels":[{"id":255705720,"url":"https://api.github.com/repos/NSwag/NSwag/labels/enhancement","name":"enhancement","color":"eb6420","default":true}],"state":"closed","locked":false,"assignee":{"login":"RSuter","id":2603405,"avatar_url":"https://avatars2.githubusercontent.com/u/2603405?v=3","gravatar_id":"","url":"https://api.github.com/users/RSuter","html_url":"https://github.com/RSuter","followers_url":"https://api.github.com/users/RSuter/followers","following_url":"https://api.github.com/users/RSuter/following{/other_user}","gists_url":"https://api.github.com/users/RSuter/gists{/gist_id}","starred_url":"https://api.github.com/users/RSuter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RSuter/subscriptions","organizations_url":"https://api.github.com/users/RSuter/orgs","repos_url":"https://api.github.com/users/RSuter/repos","events_url":"https://api.github.com/users/RSuter/events{/privacy}","received_events_url":"https://api.github.com/users/RSuter/received_events","type":"User","site_admin":false},"assignees":[{"login":"RSuter","id":2603405,"avatar_url":"https://avatars2.githubusercontent.com/u/2603405?v=3","gravatar_id":"","url":"https://api.github.com/users/RSuter","html_url":"https://github.com/RSuter","followers_url":"https://api.github.com/users/RSuter/followers","following_url":"https://api.github.com/users/RSuter/following{/other_user}","gists_url":"https://api.github.com/users/RSuter/gists{/gist_id}","starred_url":"https://api.github.com/users/RSuter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RSuter/subscriptions","organizations_url":"https://api.github.com/users/RSuter/orgs","repos_url":"https://api.github.com/users/RSuter/repos","events_url":"https://api.github.com/users/RSuter/events{/privacy}","received_events_url":"https://api.github.com/users/RSuter/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2017-02-20T19:11:57Z","updated_at":"2017-05-24T19:03:52Z","closed_at":"2017-05-24T19:03:39Z","body":"We have implemented a custom contract resolver for our WebAPI defined in `Application_Start` like this:\r\n```config.Formatters.JsonFormatter.SerializerSettings.ContractResolver = new CustomContractResolver();```\r\n\r\nIt works great for the WebAPI but it's not respected by Swagger. Looking at the `SwaggerUiOwinSettings` we use to inject Swagger into the project, we can only set a fixed set of contract resolvers defined in `NJsonSchema.PropertyNameHandling` using the config parameter `DefaultPropertyNameHandling`.\r\n\r\nIs it possible to configure Swagger to use our custom contract resolver or any other way around this?"},"comment":{"url":"https://api.github.com/repos/NSwag/NSwag/issues/comments/303820867","html_url":"https://github.com/NSwag/NSwag/issues/609#issuecomment-303820867","issue_url":"https://api.github.com/repos/NSwag/NSwag/issues/609","id":303820867,"user":{"login":"RSuter","id":2603405,"avatar_url":"https://avatars2.githubusercontent.com/u/2603405?v=3","gravatar_id":"","url":"https://api.github.com/users/RSuter","html_url":"https://github.com/RSuter","followers_url":"https://api.github.com/users/RSuter/followers","following_url":"https://api.github.com/users/RSuter/following{/other_user}","gists_url":"https://api.github.com/users/RSuter/gists{/gist_id}","starred_url":"https://api.github.com/users/RSuter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RSuter/subscriptions","organizations_url":"https://api.github.com/users/RSuter/orgs","repos_url":"https://api.github.com/users/RSuter/repos","events_url":"https://api.github.com/users/RSuter/events{/privacy}","received_events_url":"https://api.github.com/users/RSuter/received_events","type":"User","site_admin":false},"created_at":"2017-05-24T19:03:52Z","updated_at":"2017-05-24T19:03:52Z","body":"Please test with the CI artifacts and report and problems..."}}
{"actor":{"display_login":"RSuter"}}