Have you tried raising http exception inside pydantic validator like this: HTTPException(status_code=422, detail="Passwords do not match!").
確定! 回上一頁