Skip to content

Check parish ID out-of-bounds condition#97

Open
hepplerj wants to merge 1 commit intomainfrom
refactor/parish-out-of-range-check
Open

Check parish ID out-of-bounds condition#97
hepplerj wants to merge 1 commit intomainfrom
refactor/parish-out-of-range-check

Conversation

@hepplerj
Copy link
Member

Related issues: #44

This pull request introduces a validation check for parish IDs in the API parameter parsing logic. The main change ensures that only parish IDs within the valid range are accepted, improving input validation and preventing potential errors from invalid data.

Input validation improvements:

  • Added a check in parseAPIParameters (in bom-bills.go) to ensure that parish IDs must be between 1 and 158, returning an error if the value is out of range.

@hepplerj hepplerj self-assigned this Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant