Skip to content

Add shared helper for optional integer query params - #276

Merged
Chucks1093 merged 2 commits into
accesslayerorg:mainfrom
aniokedianne:fix/272-optional-int-query-helper
May 26, 2026
Merged

Add shared helper for optional integer query params#276
Chucks1093 merged 2 commits into
accesslayerorg:mainfrom
aniokedianne:fix/272-optional-int-query-helper

Conversation

@aniokedianne

Copy link
Copy Markdown

Closes #272

Summary

  • added normalizeOptionalIntegerQueryParam in src/utils/query.utils.ts
  • updated safeIntParam to use the helper for trimming and strict integer parsing
  • added focused helper tests in src/utils/test/query.utils.test.ts

Scope

  • only optional integer query param normalization behavior
  • no unrelated endpoint or feature changes

@drips-wave

drips-wave Bot commented May 26, 2026

Copy link
Copy Markdown

@aniokedianne Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093
Chucks1093 merged commit 5e904b9 into accesslayerorg:main May 26, 2026
1 check passed
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.

Add helper for normalizing optional integer query params

2 participants