RandomAPI / Randomuser.me-Node

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

Postcode value sometimes Int, sometimes String. #210

Open NickATC opened 2 years ago

NickATC commented 2 years ago

According to documentation the POSTCODE value is a string, but sometimes the API response returns the POSTCODE value as an Integer.

Not sure if error or if I am missing something.

Captura de Pantalla 2022-09-08 a la(s) 11 15 06 a m Captura de Pantalla 2022-09-08 a la(s) 11 15 18 a m
N1ckname commented 5 months ago

Hi, everyone. I also caught such behavior.

For a request like https://randomuser.me/api/?page=1&results=20&seed=abc the response will contain users with postcodes with either Int or String values, for example: 99553 or "7044 TR".

Full response can be seen here ```JSON { "results": [ { "gender": "female", "name": { "title": "Miss", "first": "Laura", "last": "Woods" }, "location": { "street": { "number": 2479, "name": "Henry Street" }, "city": "Blessington", "state": "Wexford", "country": "Ireland", "postcode": 78276, "coordinates": { "latitude": "2.0565", "longitude": "95.2422" }, "timezone": { "offset": "+1:00", "description": "Brussels, Copenhagen, Madrid, Paris" } }, "email": "laura.woods@example.com", "login": { "uuid": "9f07341f-c7e6-45b7-bab0-af6de5a4582d", "username": "angryostrich988", "password": "racers", "salt": "B5ywSDUM", "md5": "2eefb6307df2a5fb1f91c6b968dc905b", "sha1": "33cbf1e97a31e14c87fb18c481d1f6d958c76cbd", "sha256": "83e0c89668c8b6131df0c70fc4bb9abb8831e0ff97a0a29cdfa3949dd5afd491" }, "dob": { "date": "1967-07-23T09:18:33.666Z", "age": 56 }, "registered": { "date": "2018-10-18T04:05:51.990Z", "age": 5 }, "phone": "031-623-5189", "cell": "081-807-8083", "id": { "name": "PPS", "value": "1101776T" }, "picture": { "large": "https://randomuser.me/api/portraits/women/88.jpg", "medium": "https://randomuser.me/api/portraits/med/women/88.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/women/88.jpg" }, "nat": "IE" }, { "gender": "male", "name": { "title": "Mr", "first": "Marten", "last": "Faber" }, "location": { "street": { "number": 6167, "name": "Grüner Weg" }, "city": "Falkenberg/Elster", "state": "Thüringen", "country": "Germany", "postcode": 99553, "coordinates": { "latitude": "89.4367", "longitude": "135.6354" }, "timezone": { "offset": "+5:45", "description": "Kathmandu" } }, "email": "marten.faber@example.com", "login": { "uuid": "1cd1e622-12bb-4b35-a2c9-63ff7bda6c73", "username": "yellowfish737", "password": "krusty", "salt": "CQZQxXDl", "md5": "c875e08220708016989470d12ba1175f", "sha1": "48f118f603294a09a5cd30b93bca9b08d5abcae5", "sha256": "2daf436e8b7cd276eaedfd06ced8a8e1938fae2015fb775ac20490d9a92ec3a1" }, "dob": { "date": "1960-08-01T11:13:57.264Z", "age": 63 }, "registered": { "date": "2002-04-03T08:57:47.321Z", "age": 21 }, "phone": "0100-8354415", "cell": "0172-4195644", "id": { "name": "SVNR", "value": "18 010860 F 495" }, "picture": { "large": "https://randomuser.me/api/portraits/men/1.jpg", "medium": "https://randomuser.me/api/portraits/med/men/1.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/men/1.jpg" }, "nat": "DE" }, { "gender": "female", "name": { "title": "Miss", "first": "Christy", "last": "Diaz" }, "location": { "street": { "number": 5171, "name": "Karen Dr" }, "city": "Hobart", "state": "South Australia", "country": "Australia", "postcode": 2104, "coordinates": { "latitude": "3.9825", "longitude": "176.6213" }, "timezone": { "offset": "+6:00", "description": "Almaty, Dhaka, Colombo" } }, "email": "christy.diaz@example.com", "login": { "uuid": "4b400301-d696-4618-862e-8a673f80e334", "username": "happywolf771", "password": "softball", "salt": "npdL2iHP", "md5": "2d6ec889c9d7a59d6e5b3405a8b36be7", "sha1": "d526c003ba877f5b6489c032afb6864b72eb19a8", "sha256": "bd24acc8ac0eb918bc4b1cc006bf893b0c5eb28aec7a41982c439eb631010f5e" }, "dob": { "date": "1982-11-05T12:29:00.723Z", "age": 41 }, "registered": { "date": "2021-11-29T02:24:48.253Z", "age": 2 }, "phone": "07-8830-6561", "cell": "0488-834-749", "id": { "name": "TFN", "value": "314751863" }, "picture": { "large": "https://randomuser.me/api/portraits/women/53.jpg", "medium": "https://randomuser.me/api/portraits/med/women/53.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/women/53.jpg" }, "nat": "AU" }, { "gender": "female", "name": { "title": "Mrs", "first": "Naomi", "last": "Ortiz" }, "location": { "street": { "number": 4700, "name": "Camden Ave" }, "city": "Bathurst", "state": "Victoria", "country": "Australia", "postcode": 9156, "coordinates": { "latitude": "52.7455", "longitude": "6.1478" }, "timezone": { "offset": "-6:00", "description": "Central Time (US & Canada), Mexico City" } }, "email": "naomi.ortiz@example.com", "login": { "uuid": "679d3319-d28a-4d6f-baf8-bde50a8a2edd", "username": "lazypanda577", "password": "glory", "salt": "P1LGDDoE", "md5": "278c4ba61108435c37ef27e3f367f906", "sha1": "43c1576b7334ff8ec5b30a95800fd2120ed205c1", "sha256": "8b85fb9f53f0b8776f5532cbd6c111a299ef7436569ccb90d1e2b31581406df7" }, "dob": { "date": "1990-06-15T14:38:36.043Z", "age": 33 }, "registered": { "date": "2020-10-16T05:17:50.555Z", "age": 3 }, "phone": "04-7729-3793", "cell": "0440-046-672", "id": { "name": "TFN", "value": "717445923" }, "picture": { "large": "https://randomuser.me/api/portraits/women/10.jpg", "medium": "https://randomuser.me/api/portraits/med/women/10.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/women/10.jpg" }, "nat": "AU" }, { "gender": "female", "name": { "title": "Miss", "first": "Emeline", "last": "Carpentier" }, "location": { "street": { "number": 1700, "name": "Rue de la Fontaine" }, "city": "Clermont-Ferrand", "state": "Haute-Garonne", "country": "France", "postcode": 88079, "coordinates": { "latitude": "-18.3929", "longitude": "-5.5054" }, "timezone": { "offset": "+3:00", "description": "Baghdad, Riyadh, Moscow, St. Petersburg" } }, "email": "emeline.carpentier@example.com", "login": { "uuid": "b7e527c8-3ca5-430c-ba83-711d6ad98773", "username": "blackwolf663", "password": "abbott", "salt": "APCg6XyM", "md5": "4b17027e9973a8b6de610f4e01d7f955", "sha1": "0630fc82f431d2c5d675e77eea979b4bf18be981", "sha256": "9a6c1fce54e92d38f322e835ee9ffab85e4dc0861221248435f8b948304a30ed" }, "dob": { "date": "1944-09-22T13:59:04.000Z", "age": 79 }, "registered": { "date": "2018-09-08T06:32:34.414Z", "age": 5 }, "phone": "04-19-13-94-56", "cell": "06-12-79-57-10", "id": { "name": "INSEE", "value": "2440838872460 05" }, "picture": { "large": "https://randomuser.me/api/portraits/women/95.jpg", "medium": "https://randomuser.me/api/portraits/med/women/95.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/women/95.jpg" }, "nat": "FR" }, { "gender": "male", "name": { "title": "Mr", "first": "Jun", "last": "Hansen" }, "location": { "street": { "number": 1335, "name": "Koopliedenweg" }, "city": "Nijnsel", "state": "Zeeland", "country": "Netherlands", "postcode": "7044 TR", "coordinates": { "latitude": "-1.8238", "longitude": "-38.6202" }, "timezone": { "offset": "-8:00", "description": "Pacific Time (US & Canada)" } }, "email": "jun.hansen@example.com", "login": { "uuid": "8b8ce16b-b3f5-4cf5-a007-a9c4c2c778f4", "username": "whitemeercat426", "password": "outside", "salt": "P7ZxlZ1k", "md5": "05276c0c00bda8179da75f7e40373d34", "sha1": "c87bed6f246da1a0e8bf8e9778dc38ac68025df5", "sha256": "a8803109474f6f042f1bdedf5e33b2e274eca295fee17943b3ad2096f09506b5" }, "dob": { "date": "1991-10-20T05:47:02.912Z", "age": 32 }, "registered": { "date": "2018-05-06T17:02:13.310Z", "age": 5 }, "phone": "(037) 8518114", "cell": "(06) 24737954", "id": { "name": "BSN", "value": "22942793" }, "picture": { "large": "https://randomuser.me/api/portraits/men/1.jpg", "medium": "https://randomuser.me/api/portraits/med/men/1.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/men/1.jpg" }, "nat": "NL" }, { "gender": "female", "name": { "title": "Miss", "first": "Carla", "last": "Fernández" }, "location": { "street": { "number": 1720, "name": "Calle de Tetuán" }, "city": "Santa Cruz de Tenerife", "state": "Región de Murcia", "country": "Spain", "postcode": 80718, "coordinates": { "latitude": "-35.4549", "longitude": "149.0069" }, "timezone": { "offset": "+9:30", "description": "Adelaide, Darwin" } }, "email": "carla.fernandez@example.com", "login": { "uuid": "6a52282a-46d6-4a71-ac69-12ea0dfb3f24", "username": "browngoose994", "password": "seattle", "salt": "gltFmFEp", "md5": "590fb403a78c9bc59fd47bfd7f90d6d9", "sha1": "e6bcebf6465b46c8dcafd32fea2a4825e2f2a61b", "sha256": "04884b259bc9110e0064c4bc767016cb07666697396cd5915ca233dcfcf13280" }, "dob": { "date": "1982-01-14T15:21:37.475Z", "age": 42 }, "registered": { "date": "2003-08-01T16:53:06.463Z", "age": 20 }, "phone": "992-279-852", "cell": "627-945-614", "id": { "name": "DNI", "value": "23662871-A" }, "picture": { "large": "https://randomuser.me/api/portraits/women/52.jpg", "medium": "https://randomuser.me/api/portraits/med/women/52.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/women/52.jpg" }, "nat": "ES" }, { "gender": "female", "name": { "title": "Ms", "first": "Vandana", "last": "Dalvi" }, "location": { "street": { "number": 6237, "name": "Ranganathan St" }, "city": "Phagwara", "state": "Chandigarh", "country": "India", "postcode": 14922, "coordinates": { "latitude": "73.3382", "longitude": "-15.8943" }, "timezone": { "offset": "0:00", "description": "Western Europe Time, London, Lisbon, Casablanca" } }, "email": "vandana.dalvi@example.com", "login": { "uuid": "8a23be8b-115d-4ec3-ba0b-47422f9d3afd", "username": "greenbird787", "password": "popcorn", "salt": "UZnTZ3DA", "md5": "65ef777cafd386d23f5ed9ab326cb602", "sha1": "71beb7c224c6ccc3bb351e0f54eae02ac053410e", "sha256": "9e207f23cb4eeacdf2fb204a0b3c9c9d9ba81bbc3e302aa807263e73e2e7320f" }, "dob": { "date": "1952-04-11T11:43:33.423Z", "age": 71 }, "registered": { "date": "2014-05-14T18:02:10.062Z", "age": 9 }, "phone": "8349015446", "cell": "9728122999", "id": { "name": "UIDAI", "value": "318181850844" }, "picture": { "large": "https://randomuser.me/api/portraits/women/16.jpg", "medium": "https://randomuser.me/api/portraits/med/women/16.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/women/16.jpg" }, "nat": "IN" }, { "gender": "female", "name": { "title": "Mrs", "first": "Nurdan", "last": "Köybaşı" }, "location": { "street": { "number": 1501, "name": "Necatibey Cd" }, "city": "Isparta", "state": "Manisa", "country": "Turkey", "postcode": 16009, "coordinates": { "latitude": "-20.3448", "longitude": "-114.4092" }, "timezone": { "offset": "-2:00", "description": "Mid-Atlantic" } }, "email": "nurdan.koybasi@example.com", "login": { "uuid": "dd2ae95d-c05b-4e83-9226-76ed6f023546", "username": "purplepeacock242", "password": "8989", "salt": "VaoCmjux", "md5": "2b30879f3a0083226f1a2da6b124bd0d", "sha1": "1c655b9fde63210e9421e0bdf1bec1786debbfa0", "sha256": "46c8f6a155304c42f690f1ec7f07a9b676cd82f73ba81d794294b79a86890517" }, "dob": { "date": "1968-04-20T10:17:44.375Z", "age": 55 }, "registered": { "date": "2018-08-12T01:21:05.401Z", "age": 5 }, "phone": "(229)-830-5310", "cell": "(659)-821-7947", "id": { "name": "", "value": null }, "picture": { "large": "https://randomuser.me/api/portraits/women/86.jpg", "medium": "https://randomuser.me/api/portraits/med/women/86.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/women/86.jpg" }, "nat": "TR" }, { "gender": "male", "name": { "title": "Mr", "first": "Marc", "last": "Shaw" }, "location": { "street": { "number": 1925, "name": "Mockingbird Hill" }, "city": "Pueblo", "state": "Minnesota", "country": "United States", "postcode": 19658, "coordinates": { "latitude": "48.2435", "longitude": "-61.3271" }, "timezone": { "offset": "+10:00", "description": "Eastern Australia, Guam, Vladivostok" } }, "email": "marc.shaw@example.com", "login": { "uuid": "be8633e6-3ce5-4b16-bba5-c241e2acfc12", "username": "sadostrich937", "password": "hellas", "salt": "ZYH6AM01", "md5": "89776876cf8998a679bdbd63901b41eb", "sha1": "cbc0cd5604565f06a41d1cf4c6e1478d2b65f83d", "sha256": "1e3e2b65a7b84b0ebb2f7faa549f332f3a37f7e8fbe49deb4668e7d55604a4de" }, "dob": { "date": "1959-10-24T04:10:07.591Z", "age": 64 }, "registered": { "date": "2002-11-04T17:31:09.024Z", "age": 21 }, "phone": "(288) 822-3647", "cell": "(486) 592-2005", "id": { "name": "SSN", "value": "382-53-7095" }, "picture": { "large": "https://randomuser.me/api/portraits/men/92.jpg", "medium": "https://randomuser.me/api/portraits/med/men/92.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/men/92.jpg" }, "nat": "US" }, { "gender": "male", "name": { "title": "Mr", "first": "Aapo", "last": "Kilpela" }, "location": { "street": { "number": 6589, "name": "Otavalankatu" }, "city": "Mäntyharju", "state": "Northern Ostrobothnia", "country": "Finland", "postcode": 19937, "coordinates": { "latitude": "-34.7592", "longitude": "3.3898" }, "timezone": { "offset": "-3:00", "description": "Brazil, Buenos Aires, Georgetown" } }, "email": "aapo.kilpela@example.com", "login": { "uuid": "3873c36f-a18f-444c-ad83-4ce79a17359a", "username": "tinymeercat850", "password": "wildwood", "salt": "aecsWuku", "md5": "ffd203ce1d407fc9edefbccfc8a47610", "sha1": "52117946ad0053def364ef155525f1fef6a06aad", "sha256": "c616e9a527ba4ee80668b08a72a46f12384d8ce835661656604fb151d99c1425" }, "dob": { "date": "1957-06-01T16:09:26.846Z", "age": 66 }, "registered": { "date": "2013-12-19T11:32:28.852Z", "age": 10 }, "phone": "09-717-976", "cell": "048-776-03-11", "id": { "name": "HETU", "value": "NaNNA259undefined" }, "picture": { "large": "https://randomuser.me/api/portraits/men/74.jpg", "medium": "https://randomuser.me/api/portraits/med/men/74.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/men/74.jpg" }, "nat": "FI" }, { "gender": "female", "name": { "title": "Ms", "first": "Rekha", "last": "Shroff" }, "location": { "street": { "number": 2598, "name": "Marine Drive" }, "city": "Mahbubnagar", "state": "Uttarakhand", "country": "India", "postcode": 53149, "coordinates": { "latitude": "-51.9113", "longitude": "114.4710" }, "timezone": { "offset": "+10:00", "description": "Eastern Australia, Guam, Vladivostok" } }, "email": "rekha.shroff@example.com", "login": { "uuid": "c109bf3e-79bb-420b-93bd-d76b51c29295", "username": "tinypeacock204", "password": "2000", "salt": "fyHiWe3l", "md5": "e937bbda5f7f40f57a457b0df56d56b0", "sha1": "9fcbf9d7f57f81aca33709c14b999bf1e709691b", "sha256": "2e40c42599075ef8298993b0ba6fcc21d72edb5f04f1c1f6e58217744db9e5ca" }, "dob": { "date": "1963-11-28T06:07:13.600Z", "age": 60 }, "registered": { "date": "2010-06-03T00:14:30.071Z", "age": 13 }, "phone": "9145943559", "cell": "9358910102", "id": { "name": "UIDAI", "value": "756889270943" }, "picture": { "large": "https://randomuser.me/api/portraits/women/85.jpg", "medium": "https://randomuser.me/api/portraits/med/women/85.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/women/85.jpg" }, "nat": "IN" }, { "gender": "male", "name": { "title": "Mr", "first": "Eugenio", "last": "Riojas" }, "location": { "street": { "number": 6016, "name": "Periférico Guerrero" }, "city": "Las Cabañas", "state": "Tabasco", "country": "Mexico", "postcode": 98752, "coordinates": { "latitude": "-8.3241", "longitude": "178.4076" }, "timezone": { "offset": "+3:30", "description": "Tehran" } }, "email": "eugenio.riojas@example.com", "login": { "uuid": "02967acc-4d24-44ee-b52e-2c2e90d77ebb", "username": "whitedog467", "password": "options", "salt": "RTDmwzeR", "md5": "7806dab90fbf9aad9b79d4f4ac398c9a", "sha1": "90feed73be7bab541876ef4d7332049cd072e0dc", "sha256": "fa52ade631d797f955641eb717eaf25e798916770d03db73a1fc3f1c4379f66a" }, "dob": { "date": "1992-10-18T12:20:38.782Z", "age": 31 }, "registered": { "date": "2020-02-18T16:53:38.071Z", "age": 4 }, "phone": "(626) 892 2840", "cell": "(642) 909 0483", "id": { "name": "NSS", "value": "56 31 34 2016 2" }, "picture": { "large": "https://randomuser.me/api/portraits/men/45.jpg", "medium": "https://randomuser.me/api/portraits/med/men/45.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/men/45.jpg" }, "nat": "MX" }, { "gender": "male", "name": { "title": "Mr", "first": "آرسین", "last": "سلطانی نژاد" }, "location": { "street": { "number": 5259, "name": "شهید همت" }, "city": "سیرجان", "state": "اصفهان", "country": "Iran", "postcode": 34782, "coordinates": { "latitude": "16.7985", "longitude": "-17.8406" }, "timezone": { "offset": "+7:00", "description": "Bangkok, Hanoi, Jakarta" } }, "email": "arsyn.sltnynjd@example.com", "login": { "uuid": "528681c0-3732-4560-9b26-de43ed519620", "username": "happybird852", "password": "hair", "salt": "4OSRkrtu", "md5": "2c3e6c11f6627d8e797cd7f49739e683", "sha1": "02c9fd6f8964f678da9c3dd61bf3ec0848bb173b", "sha256": "1760b6bb2a9d45caee03366da56770e817fdb4fb99c6cf5bfdc77e76230cd077" }, "dob": { "date": "1980-05-25T17:47:26.171Z", "age": 43 }, "registered": { "date": "2020-02-13T17:35:59.903Z", "age": 4 }, "phone": "006-82501952", "cell": "0911-855-4884", "id": { "name": "", "value": null }, "picture": { "large": "https://randomuser.me/api/portraits/men/13.jpg", "medium": "https://randomuser.me/api/portraits/med/men/13.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/men/13.jpg" }, "nat": "IR" }, { "gender": "male", "name": { "title": "Mr", "first": "Vedat", "last": "Atan" }, "location": { "street": { "number": 1658, "name": "Abanoz Sk" }, "city": "Van", "state": "Ankara", "country": "Turkey", "postcode": 56709, "coordinates": { "latitude": "34.3307", "longitude": "10.0601" }, "timezone": { "offset": "+3:30", "description": "Tehran" } }, "email": "vedat.atan@example.com", "login": { "uuid": "fc42bf6c-f6ad-4f38-b71d-d8e69fd6bae4", "username": "redpanda636", "password": "young", "salt": "Z9lk3UTt", "md5": "bffa43129598b68923749879648d4cf9", "sha1": "266dac875392a7276229a1ada3316a5e9803d499", "sha256": "a9050cdafdd59365955a40d78c12832d2966392ad39c28a9cd206c6cf8bcb058" }, "dob": { "date": "1981-01-30T17:09:56.717Z", "age": 43 }, "registered": { "date": "2004-05-21T15:31:37.609Z", "age": 19 }, "phone": "(351)-088-9932", "cell": "(705)-887-3286", "id": { "name": "", "value": null }, "picture": { "large": "https://randomuser.me/api/portraits/men/20.jpg", "medium": "https://randomuser.me/api/portraits/med/men/20.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/men/20.jpg" }, "nat": "TR" }, { "gender": "male", "name": { "title": "Mr", "first": "Zhadan", "last": "Musiienko" }, "location": { "street": { "number": 150, "name": "Begoulieva" }, "city": "Rzhishchiv", "state": "Mikolayivska", "country": "Ukraine", "postcode": 43271, "coordinates": { "latitude": "-84.4183", "longitude": "153.8337" }, "timezone": { "offset": "+9:30", "description": "Adelaide, Darwin" } }, "email": "zhadan.musiienko@example.com", "login": { "uuid": "0cdd435a-6b4d-4a7f-8310-85c485b1e853", "username": "brownleopard588", "password": "redrose", "salt": "4pukcxoY", "md5": "b4374f54cc8b5312098517f0e78c16ce", "sha1": "4e4226f672e6167c63776504d3e7af76f3e22025", "sha256": "1281060a33ea21dd5c9724930fa4542272d207e52a69199b9a065ce735ea3786" }, "dob": { "date": "1967-08-09T19:14:09.210Z", "age": 56 }, "registered": { "date": "2018-02-13T06:45:20.777Z", "age": 6 }, "phone": "(097) I26-7373", "cell": "(099) C94-7448", "id": { "name": "", "value": null }, "picture": { "large": "https://randomuser.me/api/portraits/men/9.jpg", "medium": "https://randomuser.me/api/portraits/med/men/9.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/men/9.jpg" }, "nat": "UA" }, { "gender": "male", "name": { "title": "Mr", "first": "Willie", "last": "Moore" }, "location": { "street": { "number": 5760, "name": "Hillcrest Rd" }, "city": "Hollywood", "state": "Utah", "country": "United States", "postcode": 81267, "coordinates": { "latitude": "-87.5972", "longitude": "-67.8460" }, "timezone": { "offset": "-2:00", "description": "Mid-Atlantic" } }, "email": "willie.moore@example.com", "login": { "uuid": "5a886101-04c5-425f-a9d3-9bfb2bfbadcc", "username": "purplekoala739", "password": "madmad", "salt": "WM3OSCNk", "md5": "76009305e4cf998011066e6769effc8d", "sha1": "5bfe031bf8a65bda6eebd7519c4511e7d8b2dbe3", "sha256": "ef1c1eb52a67e182045b9cf725380eca17a04c80a59a2d1623e040238ebfea29" }, "dob": { "date": "1975-11-12T06:11:20.740Z", "age": 48 }, "registered": { "date": "2007-10-22T18:57:23.766Z", "age": 16 }, "phone": "(519) 970-5020", "cell": "(453) 943-7508", "id": { "name": "SSN", "value": "148-91-5974" }, "picture": { "large": "https://randomuser.me/api/portraits/men/37.jpg", "medium": "https://randomuser.me/api/portraits/med/men/37.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/men/37.jpg" }, "nat": "US" }, { "gender": "male", "name": { "title": "Mr", "first": "Cecil", "last": "Cook" }, "location": { "street": { "number": 9509, "name": "Eason Rd" }, "city": "North Las Vegas", "state": "Kentucky", "country": "United States", "postcode": 13710, "coordinates": { "latitude": "19.4308", "longitude": "-179.5970" }, "timezone": { "offset": "+5:45", "description": "Kathmandu" } }, "email": "cecil.cook@example.com", "login": { "uuid": "43238d8d-9ebf-4489-b716-82c1e20ec156", "username": "silvertiger136", "password": "reginald", "salt": "u53UO3ib", "md5": "f9db1a31354156cbab9b66b5b96e4dad", "sha1": "7644575073158ddd86ccb4fcb58aae6bd941486f", "sha256": "50ab8dcad5264d69053913d05c609a2ab95b67bf634250c6a768451a4e482f96" }, "dob": { "date": "1988-04-16T17:22:04.090Z", "age": 35 }, "registered": { "date": "2007-02-21T09:21:22.083Z", "age": 17 }, "phone": "(343) 938-6888", "cell": "(223) 266-7142", "id": { "name": "SSN", "value": "357-02-1526" }, "picture": { "large": "https://randomuser.me/api/portraits/men/70.jpg", "medium": "https://randomuser.me/api/portraits/med/men/70.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/men/70.jpg" }, "nat": "US" }, { "gender": "female", "name": { "title": "Mrs", "first": "Shruti", "last": "Chavare" }, "location": { "street": { "number": 9944, "name": "Sampige Rd" }, "city": "Thoothukudi", "state": "Haryana", "country": "India", "postcode": 42901, "coordinates": { "latitude": "69.5493", "longitude": "178.1298" }, "timezone": { "offset": "+9:30", "description": "Adelaide, Darwin" } }, "email": "shruti.chavare@example.com", "login": { "uuid": "168e7598-fb58-4de2-8214-b8adef4c1f65", "username": "brownfish862", "password": "genesis", "salt": "zzwgII5V", "md5": "488ee3d6b599ba8884fce7af0ad88884", "sha1": "76c93e90ed4c4bc063ff1da5f8c753920316678a", "sha256": "0efdce14a72497fe88ce94c1f4eab78ab02e0e316d4a8e7e6c99c630312696b9" }, "dob": { "date": "1948-02-07T08:22:16.804Z", "age": 76 }, "registered": { "date": "2016-01-21T07:57:16.890Z", "age": 8 }, "phone": "7825234432", "cell": "7880352296", "id": { "name": "UIDAI", "value": "650607027083" }, "picture": { "large": "https://randomuser.me/api/portraits/women/81.jpg", "medium": "https://randomuser.me/api/portraits/med/women/81.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/women/81.jpg" }, "nat": "IN" }, { "gender": "female", "name": { "title": "Mrs", "first": "Gladimira", "last": "Fogaça" }, "location": { "street": { "number": 7480, "name": "Rua Espirito Santo " }, "city": "Nova Iguaçu", "state": "Ceará", "country": "Brazil", "postcode": 11096, "coordinates": { "latitude": "25.6881", "longitude": "-158.0529" }, "timezone": { "offset": "-12:00", "description": "Eniwetok, Kwajalein" } }, "email": "gladimira.fogaca@example.com", "login": { "uuid": "4c99c7df-bb73-4561-bae2-6de749df43d7", "username": "goldenbutterfly103", "password": "temp", "salt": "2gPxBQQN", "md5": "68be5745eade4fc5d8e875cdf4813171", "sha1": "eca2191eb95f05c2fe57d33d2a7086214e02cea0", "sha256": "56f9b983e5d76bfb9924e750f508739f8696e1f59badf64e93677c68d4f0fa42" }, "dob": { "date": "1964-09-08T13:50:56.719Z", "age": 59 }, "registered": { "date": "2021-01-06T05:15:35.759Z", "age": 3 }, "phone": "(47) 3819-0434", "cell": "(99) 2091-3963", "id": { "name": "CPF", "value": "622.036.597-20" }, "picture": { "large": "https://randomuser.me/api/portraits/women/52.jpg", "medium": "https://randomuser.me/api/portraits/med/women/52.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/women/52.jpg" }, "nat": "BR" } ], "info": { "seed": "abc", "results": 20, "page": 1, "version": "1.4" } } ```

Seems to be a bug or some misconception as the "Results" section in the format description provides an example, where postcode is shown as a String value:

image

It would be nice if this inconsistency will be resolved as otherwise it forces client side to make extra moves for correct deserialization. Also, an API description regarding which values might be provided in the fields (especially if the null is permissible) is much appreciated.