Commit b980189
committed
à faire valider.
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 passed1 parent e747d0e commit b980189
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
89 | 101 | | |
90 | 102 | | |
91 | 103 | | |
| |||
0 commit comments