From 354e8ba4ba083955a37f8384d0a910627909590d Mon Sep 17 00:00:00 2001 From: Vaclav Lunak Date: Fri, 13 Oct 2023 07:09:54 +0200 Subject: [PATCH] fix CR preview response type --- src/diffs/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffs/router.py b/src/diffs/router.py index 7c4d5c9..b8775b7 100644 --- a/src/diffs/router.py +++ b/src/diffs/router.py @@ -135,7 +135,7 @@ def mtr_diff_metadata(db: Session = Depends(get_db)): return meta -@router.get("/pending/cr", include_in_schema=False) +@router.get("/pending/cr", include_in_schema=False, response_model=schemas.PendingCRDiffResponse) def cr_preview(response: Response, db: Session = Depends(get_db)): diff: PendingCrDiff = service.get_pending_cr_diff(db) if not diff: