Skip to content

feat(validation): runtime body_model validation with 422 errors - #122

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue-100-validation
Jun 21, 2026
Merged

feat(validation): runtime body_model validation with 422 errors#122
ZhuchkaTriplesix merged 1 commit into
devfrom
issue-100-validation

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Resolves #100.

  • Adds to Rust
  • Uses Pydantic to validate if present
  • Returns a 422 Unprocessable Entity with for validation errors
  • Passes all 117 tests

Implements #100 by passing body_model down to Rust and validating the JSON body via Pydantic model_validate at runtime. Validation errors produce a 422 response.
@ZhuchkaTriplesix ZhuchkaTriplesix added this to the v0.3.0 milestone Jun 21, 2026
@ZhuchkaTriplesix ZhuchkaTriplesix added the enhancement New feature or request label Jun 21, 2026
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Jun 21, 2026
@ZhuchkaTriplesix ZhuchkaTriplesix added the enhancement New feature or request label Jun 21, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 4932c27 into dev Jun 21, 2026
16 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.

1 participant