From c4a7922cbdf3694e49019727d27fdb1c7dd8ab3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Ga=C4=87e=C5=A1a?= Date: Wed, 25 Feb 2026 11:38:31 +0100 Subject: [PATCH] fix fork create return code in openapi spec --- app/api/openapi/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/openapi/repo.go b/app/api/openapi/repo.go index 804611e725..002f049cd3 100644 --- a/app/api/openapi/repo.go +++ b/app/api/openapi/repo.go @@ -1515,7 +1515,7 @@ func repoOperations(reflector *openapi3.Reflector) { repoRequest repo.CreateForkInput }{}, http.MethodPost) - _ = reflector.SetJSONResponse(&opForkCreate, new(repo.RepositoryOutput), http.StatusOK) + _ = reflector.SetJSONResponse(&opForkCreate, new(repo.RepositoryOutput), http.StatusCreated) _ = reflector.SetJSONResponse(&opForkCreate, new(usererror.Error), http.StatusBadRequest) _ = reflector.SetJSONResponse(&opForkCreate, new(usererror.Error), http.StatusInternalServerError) _ = reflector.SetJSONResponse(&opForkCreate, new(usererror.Error), http.StatusUnauthorized)