{"action":"created","issue":{"url":"https://api.github.com/repos/goshippo/shippo-node-client/issues/41","repository_url":"https://api.github.com/repos/goshippo/shippo-node-client","labels_url":"https://api.github.com/repos/goshippo/shippo-node-client/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/goshippo/shippo-node-client/issues/41/comments","events_url":"https://api.github.com/repos/goshippo/shippo-node-client/issues/41/events","html_url":"https://github.com/goshippo/shippo-node-client/issues/41","id":245920987,"number":41,"title":"Address validation - shippo.address.create()","user":{"login":"gbruins","id":5741545,"avatar_url":"https://avatars3.githubusercontent.com/u/5741545?v=4","gravatar_id":"","url":"https://api.github.com/users/gbruins","html_url":"https://github.com/gbruins","followers_url":"https://api.github.com/users/gbruins/followers","following_url":"https://api.github.com/users/gbruins/following{/other_user}","gists_url":"https://api.github.com/users/gbruins/gists{/gist_id}","starred_url":"https://api.github.com/users/gbruins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbruins/subscriptions","organizations_url":"https://api.github.com/users/gbruins/orgs","repos_url":"https://api.github.com/users/gbruins/repos","events_url":"https://api.github.com/users/gbruins/events{/privacy}","received_events_url":"https://api.github.com/users/gbruins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-27T04:13:36Z","updated_at":"2017-07-27T18:50:58Z","closed_at":null,"body":"I sent known incorrect address data to test address validation:\r\n\r\nstreet1=166 sylvan ave   (number 166 does not exist)\r\ncity=san mateoo  (too many 'o's.. should be 'san mateo')\r\nstate=CA\r\nzip=94401  (correct zip is 94403)\r\ncountry=US\r\n\r\nThe API response returned  \"is_valid\": true, as well as the *correct* zip and city name:\r\n\r\n```javascript\r\n{\r\n  \"data\": {\r\n    \"object_created\": \"2017-07-27T03:56:02.918Z\",\r\n    \"object_updated\": \"2017-07-27T03:56:03.456Z\",\r\n    \"object_id\": \"97586d355f564c3a90519fc0c2fe7ce5\",\r\n    \"is_complete\": true,\r\n    \"validation_results\": {\r\n      \"is_valid\": true,    <======================\r\n      \"messages\": [\r\n        \r\n      ]\r\n    },\r\n    \"object_owner\": \"xxxxxxxxxx\",\r\n    \"name\": \"\",\r\n    \"company\": \"\",\r\n    \"street_no\": \"\",\r\n    \"street1\": \"166 SYLVAN AVE\",\r\n    \"street2\": \"\",\r\n    \"street3\": \"\",\r\n    \"city\": \"SAN MATEO\",   <======================\r\n    \"state\": \"CA\",\r\n    \"zip\": \"94403\",   <======================\r\n    \"country\": \"US\",\r\n    \"longitude\": null,\r\n    \"latitude\": null,\r\n    \"phone\": \"\",\r\n    \"email\": \"\",\r\n    \"is_residential\": null,\r\n    \"metadata\": \"\",\r\n    \"test\": true\r\n  }\r\n}\r\n```\r\n\r\nI was expecting \"is_valid\": false since I submitted incorrect data.  Is this by design?"},"comment":{"url":"https://api.github.com/repos/goshippo/shippo-node-client/issues/comments/318453253","html_url":"https://github.com/goshippo/shippo-node-client/issues/41#issuecomment-318453253","issue_url":"https://api.github.com/repos/goshippo/shippo-node-client/issues/41","id":318453253,"user":{"login":"gbruins","id":5741545,"avatar_url":"https://avatars3.githubusercontent.com/u/5741545?v=4","gravatar_id":"","url":"https://api.github.com/users/gbruins","html_url":"https://github.com/gbruins","followers_url":"https://api.github.com/users/gbruins/followers","following_url":"https://api.github.com/users/gbruins/following{/other_user}","gists_url":"https://api.github.com/users/gbruins/gists{/gist_id}","starred_url":"https://api.github.com/users/gbruins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbruins/subscriptions","organizations_url":"https://api.github.com/users/gbruins/orgs","repos_url":"https://api.github.com/users/gbruins/repos","events_url":"https://api.github.com/users/gbruins/events{/privacy}","received_events_url":"https://api.github.com/users/gbruins/received_events","type":"User","site_admin":false},"created_at":"2017-07-27T18:50:58Z","updated_at":"2017-07-27T18:50:58Z","body":"Excellent suggestion @mootrichard.\r\n"}}
{"actor":{"display_login":"gbruins"}}