Skip to content

Commit

Permalink
disable response validation on job results endpoint (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeifer committed Sep 7, 2023
1 parent 40d2758 commit 93c6fbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/swoop/api/routers/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from buildpg import V, funcs, render
from fastapi import APIRouter, HTTPException, Query, Request
from fastapi.responses import JSONResponse

from swoop.api.models.jobs import (
JobList,
Expand Down Expand Up @@ -283,7 +284,7 @@ async def get_workflow_execution_details(
async def get_workflow_execution_result(
request: Request,
jobID,
) -> Results | APIException:
) -> JSONResponse | APIException:
"""
Retrieves workflow execution output payload by jobID
"""
Expand All @@ -294,7 +295,7 @@ async def get_workflow_execution_result(
status_code=404, detail="Workflow execution output payload not found"
)

return results
return JSONResponse(results)


@router.get(
Expand Down

0 comments on commit 93c6fbe

Please sign in to comment.