Skip to content

feat: Add request validation#414

Merged
gtema merged 1 commit intomainfrom
validation
Dec 2, 2025
Merged

feat: Add request validation#414
gtema merged 1 commit intomainfrom
validation

Conversation

@gtema
Copy link
Collaborator

@gtema gtema commented Dec 2, 2025

Maybe not complete in the coverage, but adds request schema validation
based on the validator crate. utoipa and schemars are describing
the schema, but not enforcing, thus need to add something else.

Fixes: #324

Maybe not complete in the coverage, but adds request schema validation
based on the `validator` crate. `utoipa` and `schemars` are describing
the schema, but not enforcing, thus need to add something else.

Fixes: #324
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

🐰 Bencher Report

Branchvalidation
Testbedubuntu-latest

⚠️ WARNING: No Threshold found!

Without a Threshold, no Alerts will ever be generated.

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds flag.

Click to view all benchmark results
BenchmarkLatencynanoseconds (ns)
fernet token/project📈 view plot
⚠️ NO THRESHOLD
1,503.30 ns
get_fernet_token_timestamp/project📈 view plot
⚠️ NO THRESHOLD
162.61 ns
🐰 View full continuous benchmarking report in Bencher

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

🦢 Load Test Results

Goose Attack Report

Plan Overview

Action Started Stopped Elapsed Users
Increasing 25-12-02 15:00:11 25-12-02 15:00:13 00:00:02 0 → 4
Maintaining 25-12-02 15:00:13 25-12-02 15:00:43 00:00:30 4
Decreasing 25-12-02 15:00:43 25-12-02 15:00:43 00:00:00 0 ← 4

Request Metrics

Method Name # Requests # Fails Average (ms) Min (ms) Max (ms) RPS Failures/s
GET 7551 0 15.35 6 62 251.70 0.00
Aggregated 7551 0 15.35 6 62 251.70 0.00

Response Time Metrics

Method Name 50%ile (ms) 60%ile (ms) 70%ile (ms) 80%ile (ms) 90%ile (ms) 95%ile (ms) 99%ile (ms) 100%ile (ms)
GET 14 16 18 20 23 26 33 62
Aggregated 14 16 18 20 23 26 33 62

Status Code Metrics

Method Name Status Codes
GET 7,551 [200]
Aggregated 7,551 [200]

Transaction Metrics

Transaction # Times Run # Fails Average (ms) Min (ms) Max (ms) RPS Failures/s
ListUsers
0.0 0 0 0.00 0 0 0.00 0.00
0.1 4804 0 12.01 6 52 160.13 0.00
ValidateToken
1.0 0 0 0.00 0 0 0.00 0.00
1.1 2747 0 21.40 13 62 91.57 0.00
Aggregated 7551 0 15.35 6 62 251.70 0.00

Scenario Metrics

Transaction # Users # Times Run Average (ms) Min (ms) Max (ms) Scenarios/s Iterations
ListUsers 2 4802 12.02 6 52 160.07 2401.00
ValidateToken 2 2745 21.41 13 62 91.50 1372.50
Aggregated 4 7547 15.43 6 62 251.57 3773.50

Error Metrics

Method Name # Error

View full report

@gtema gtema merged commit d15b9aa into main Dec 2, 2025
24 of 25 checks passed
@gtema gtema deleted the validation branch December 8, 2025 14:55
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.

Missing Input Validation and Sanitization

1 participant

Comments