(request: Request, exc: ValidationError)
| 37 | |
| 38 | |
| 39 | async def validation_exception_handler(request: Request, exc: ValidationError): |
| 40 | logger.error(f"ValidationError {exc}") |
| 41 | return JSONResponse( |
| 42 | { |
| 43 | "detail": "Validation error : a data is missing or in wrong format. Could be an error in our answer, not only in your request", |
| 44 | "validation_error_message": str(exc), |
| 45 | }, |
| 46 | status_code=400, |
| 47 | ) |
| 48 | |
| 49 | |
| 50 | def create_app() -> FastAPI: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…