{"action":"created","issue":{"url":"https://api.github.com/repos/WireMock-Net/WireMock.Net/issues/123","repository_url":"https://api.github.com/repos/WireMock-Net/WireMock.Net","labels_url":"https://api.github.com/repos/WireMock-Net/WireMock.Net/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/WireMock-Net/WireMock.Net/issues/123/comments","events_url":"https://api.github.com/repos/WireMock-Net/WireMock.Net/issues/123/events","html_url":"https://github.com/WireMock-Net/WireMock.Net/issues/123","id":313104079,"number":123,"title":"Fix for DateTime Header causing null value in ResponseBuilder","user":{"login":"rangerranger","id":38229774,"avatar_url":"https://avatars3.githubusercontent.com/u/38229774?v=4","gravatar_id":"","url":"https://api.github.com/users/rangerranger","html_url":"https://github.com/rangerranger","followers_url":"https://api.github.com/users/rangerranger/followers","following_url":"https://api.github.com/users/rangerranger/following{/other_user}","gists_url":"https://api.github.com/users/rangerranger/gists{/gist_id}","starred_url":"https://api.github.com/users/rangerranger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rangerranger/subscriptions","organizations_url":"https://api.github.com/users/rangerranger/orgs","repos_url":"https://api.github.com/users/rangerranger/repos","events_url":"https://api.github.com/users/rangerranger/events{/privacy}","received_events_url":"https://api.github.com/users/rangerranger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-10T21:58:10Z","updated_at":"2018-04-11T20:13:17Z","closed_at":null,"author_association":"NONE","body":"Having the below header in a static mapping file as part of the response results in a NULL value being returned to ResponseBuilder in InitResponseBuilder, since it either expects a string or json - but this header value is being read in as a DateTime object.\r\n\r\n\"Rate-Limit-Reset\": \"2018-04-09T20:39:46.956Z\",\r\n\r\nI added a quickfix like so, please let me know if that looks ok?\r\nIn src/WireMock.Net/Server/FluentMockServer.Admin.cs:\r\nhttps://github.com/rangerranger/WireMock.Net/commit/747524c03fdd79915075e307e11b20795f5ccc69#diff-8633a9484e8c211d1cc3fc5d0c12f4de"},"comment":{"url":"https://api.github.com/repos/WireMock-Net/WireMock.Net/issues/comments/380581000","html_url":"https://github.com/WireMock-Net/WireMock.Net/issues/123#issuecomment-380581000","issue_url":"https://api.github.com/repos/WireMock-Net/WireMock.Net/issues/123","id":380581000,"user":{"login":"rangerranger","id":38229774,"avatar_url":"https://avatars3.githubusercontent.com/u/38229774?v=4","gravatar_id":"","url":"https://api.github.com/users/rangerranger","html_url":"https://github.com/rangerranger","followers_url":"https://api.github.com/users/rangerranger/followers","following_url":"https://api.github.com/users/rangerranger/following{/other_user}","gists_url":"https://api.github.com/users/rangerranger/gists{/gist_id}","starred_url":"https://api.github.com/users/rangerranger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rangerranger/subscriptions","organizations_url":"https://api.github.com/users/rangerranger/orgs","repos_url":"https://api.github.com/users/rangerranger/repos","events_url":"https://api.github.com/users/rangerranger/events{/privacy}","received_events_url":"https://api.github.com/users/rangerranger/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T20:13:16Z","updated_at":"2018-04-11T20:13:16Z","author_association":"NONE","body":"Right. Still keeping PartialMatching to FALSE, i can match with JsonExactMatcher but not with JsonPathMatcher. Not sure why - couldnt get JsonPathMatcher to work. Therefore wrote the simple JsonExactMatcher. I can send you the mapping file as an example repro if uou want - but JsonPathMatcher returns score 0.\n\n> On Apr 11, 2018, at 12:46 PM, Stef Heyenrath <notifications@github.com> wrote:\n> \n> Ok I see.\n> \n> When using the saved request, sometimes it's needed to manually adjust the mapping a bit because the matching is too strict because not only the body is matched but also headers, query and others.\n> \n> Make sure to enable partial mapping and then do a http get request to /__admin/requests to see the matching details from the request you did send. Look for matchings where the match is 0.\n> \n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub, or mute the thread.\n> \n"}}
{"actor":{"display_login":"rangerranger"}}