Skip to content

feat: ✨ add params decoder#2

Merged
faizanazim11 merged 1 commit intomainfrom
feat/params_decoder
Nov 20, 2025
Merged

feat: ✨ add params decoder#2
faizanazim11 merged 1 commit intomainfrom
feat/params_decoder

Conversation

@faizanazim11
Copy link

This pull request updates dependencies and introduces a new utility for parsing JSON parameters in FastAPI endpoints. The most significant changes include upgrading the ruff pre-commit hook, adding the orjson dependency, and implementing the ParamsDecoder utility.

Dependency updates:

  • Upgraded the ruff pre-commit hook in .pre-commit-config.yaml from version v0.13.2 to v0.14.5 to ensure the latest linting features and bug fixes.
  • Added the orjson library (version >=3.11.4) to the dependencies in pyproject.toml for fast and correct JSON serialization/deserialization.

New utility implementation:

  • Added ParamsDecoder to src/jetpack/utils/parse_utils.py, providing a reusable way to decode stringified JSON query parameters into Python models for FastAPI endpoints.

Version bump:

  • Updated the project version in pyproject.toml from 0.2.0 to 0.2.1 to reflect the new features and dependency changes.

@faizanazim11 faizanazim11 self-assigned this Nov 20, 2025
Copilot AI review requested due to automatic review settings November 20, 2025 15:43
@faizanazim11 faizanazim11 added the enhancement New feature or request label Nov 20, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new ParamsDecoder utility for parsing JSON query parameters in FastAPI endpoints, updates the ruff pre-commit hook to v0.14.5, and bumps the project version to 0.2.1.

  • Introduces ParamsDecoder utility for decoding stringified JSON query parameters into Python models
  • Updates ruff pre-commit hook from v0.13.2 to v0.14.5
  • Adds orjson dependency for fast JSON parsing

Reviewed Changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 3 comments.

File Description
src/jetpack/utils/parse_utils.py Implements the new ParamsDecoder utility class for JSON parameter parsing
pyproject.toml Adds orjson>=3.11.4 dependency and bumps version to 0.2.1
.pre-commit-config.yaml Updates ruff pre-commit hook to v0.14.5

@faizanazim11 faizanazim11 merged commit 2e0bc69 into main Nov 20, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants