{"action":"closed","issue":{"url":"https://api.github.com/repos/apigee-127/swagger-tools/issues/268","labels_url":"https://api.github.com/repos/apigee-127/swagger-tools/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/apigee-127/swagger-tools/issues/268/comments","events_url":"https://api.github.com/repos/apigee-127/swagger-tools/issues/268/events","html_url":"https://github.com/apigee-127/swagger-tools/issues/268","id":101906819,"number":268,"title":"swagger-validator reports valid string with format=\"date\" as invalid","user":{"login":"asnowfix","id":212094,"avatar_url":"https://avatars.githubusercontent.com/u/212094?v=3","gravatar_id":"","url":"https://api.github.com/users/asnowfix","html_url":"https://github.com/asnowfix","followers_url":"https://api.github.com/users/asnowfix/followers","following_url":"https://api.github.com/users/asnowfix/following{/other_user}","gists_url":"https://api.github.com/users/asnowfix/gists{/gist_id}","starred_url":"https://api.github.com/users/asnowfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asnowfix/subscriptions","organizations_url":"https://api.github.com/users/asnowfix/orgs","repos_url":"https://api.github.com/users/asnowfix/repos","events_url":"https://api.github.com/users/asnowfix/events{/privacy}","received_events_url":"https://api.github.com/users/asnowfix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-19T14:27:13Z","updated_at":"2015-08-19T15:21:46Z","closed_at":"2015-08-19T15:21:46Z","body":"```\r\n    \"swagger-tools\": \"^0.9.0\",\r\n```\r\n\r\nWhile dealing with a response, 2 dates are rejected:\r\n\r\n```\r\n  swagger-tools:middleware:validator   Response validation: failed +7s\r\n  swagger-tools:middleware:validator   Reason: Failed schema validation +4ms\r\n  swagger-tools:middleware:validator   Errors: +0ms\r\n  swagger-tools:middleware:validator     0: +0ms\r\n  swagger-tools:middleware:validator       code: INVALID_FORMAT +0ms\r\n  swagger-tools:middleware:validator       message: Object didn't pass validation for format date: 2015-08-19T03:36:07.000Z +0ms\r\n  swagger-tools:middleware:validator       path: [\"result\",\"320\",\"lastModifiedDate\"] +0ms\r\n  swagger-tools:middleware:validator     1: +0ms\r\n  swagger-tools:middleware:validator       code: INVALID_FORMAT +0ms\r\n  swagger-tools:middleware:validator       message: Object didn't pass validation for format date: 2015-08-19T03:36:07.000Z +4ms\r\n  swagger-tools:middleware:validator       path: [\"result\",\"320\",\"submittedDate\"] +0ms\r\n```\r\n\r\n...while they are perfectly valid according to [RFC3339 examples](http://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#date.and.time.format.examples) are recognized as such by Node.js:\r\n\r\n```\r\n> d = new Date(\"2014-03-18T06:46:26.000Z\")\r\nTue Mar 18 2014 07:46:26 GMT+0100 (Romance Standard Time)\r\n```"}}