RandomAPI / Randomuser.me-Node

Source code that powers randomuser.me
https://randomuser.me
MIT License
1.34k stars 268 forks source link

Australian Postal Code Facing Intermittent length issues #211

Open paprika6900 opened 1 year ago

paprika6900 commented 1 year ago

Australian Post Code Generating some Postal codes with 3 digits. The Requirement in Australia should be 4 digits.

Example generation:

`{"results":[{"gender":"female","name":{"title":"Ms","first":"Madison","last":"Allen"},"location":{"street":{"number":1092,"name":"Hogan St"},"city":"Darwin","state":"Australian Capital Territory","country":"Australia","postcode":410,"coordinates":{"latitude":"-54.3687","longitude":"23.2089"},"timezone":{"offset":"-10:00","description":"Hawaii"}},"email":"madison.allen@example.com","login":{"uuid":"a0f11651-3f64-4de1-a8b5-aacc4ba6c569","username":"greenostrich702","password":"red123","salt":"0zqY5fQI","md5":"e07ce1b790acfd41dcf1e65a6b756a01","sha1":"372abc1a53764393a71dc98acdf0d9ca52123b6f","sha256":"9606aed6e94cad8e70eaea72a2cd34aa3a109800bede0b29d9188867c8527edf"},"dob":{"date":"1985-08-16T08:12:51.233Z","age":37},"registered":{"date":"2015-06-26T16:35:39.648Z","age":7},"phone":"07-6473-4675","cell":"0496-298-242","id":{"name":"TFN","value":"774284886"},"picture":{"large":"https://randomuser.me/api/portraits/women/29.jpg","medium":"https://randomuser.me/api/portraits/med/women/29.jpg","thumbnail":"https://randomuser.me/api/portraits/thumb/women/29.jpg"},"nat":"AU"}],"info":{"seed":"dab46cff48af7009","results":1,"page":1,"version":"1.3"}}

This might be a String/Integer issue, where the leading 0 is removed.