Skip to content

Fix/fast json schema #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 18, 2025
Merged

Fix/fast json schema #156

merged 8 commits into from
Jul 18, 2025

Conversation

MaxNumerique
Copy link
Contributor

No description provided.

test cases in test_routes.py expect a validation error format thats need to be match fastjsonschema provides

{key} is a required property for missing required fields
Additionnal properties are not allowed for extra properties

Modifications :
- Catch fastjsonjsonschema exceptions and extract the field name
- transform the error message to match the format expected by tests
- uses string manipulations to handle both mising required fields and additionnal properties cases

pytest : 40/40 passed
@MaxNumerique MaxNumerique merged commit 48ee99a into next Jul 18, 2025
6 checks passed
@MaxNumerique MaxNumerique deleted the fix/fast_json_schema branch July 21, 2025 08:40
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.

3 participants