GSA / GSA/GSA-APIs

value for "zip" omits leading zeros

Open Beginner friendly
#111 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
11
Forks
6
PR merge metrics
No merged PRs in 30d

Description

When querying the endpoint by zip code and year (https://api.gsa.gov/travel/perdiem/v2/rates/zip/{zip}/year/{year}) the response data omits the leading 0 in the "zip" field. For example, calling the endpoint https://api.gsa.gov/travel/perdiem/v2/rates/zip/07001/year/2025, the result returns the "zip" value as "7001".

Contributor guide

Open the contributing guide

Research direction

Start by requesting the documented endpoint /travel/perdiem/v2/rates/zip/{zip}/year/{year} with zip 07001 and year 2025, then trace the response handling for the "zip" field. Done means the response preserves the leading zero and the same behavior is verified for ZIP codes with leading zeros.

Written by the indexing model from the issue text.

Assessment

Domain
api, backend-api-design
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.