Skip to content

Commit

Permalink
changed force
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Oct 24, 2024
1 parent 82d4b4d commit 9ae8293
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4338,7 +4338,7 @@ paths:
'403':
description: ProjectInvalidRightsError
'404':
description: ProjectNotFoundError, UserDefaultWalletNotFoundError
description: UserDefaultWalletNotFoundError, ProjectNotFoundError
'409':
description: ProjectTooManyProjectOpenedError
'422':
Expand Down Expand Up @@ -5390,7 +5390,7 @@ paths:
schema:
title: Force
type: boolean
default: true
default: false
name: force
in: query
responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ class Config:

class RemoveQueryParams(BaseModel):
force: bool = Field(
default=True, description="Force removal (even if resource is active)"
default=False, description="Force removal (even if resource is active)"
)
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class HttpErrorInfo(NamedTuple):
_TO_HTTP_ERROR_MAP: dict[type[Exception], HttpErrorInfo] = {
ProjectRunningConflictError: HttpErrorInfo(
status.HTTP_409_CONFLICT,
"Current study is in use and cannot be trashed [{project_uuid}]",
"Current study is in use and cannot be trashed [{project_uuid}]. Please stop all services first and try again",
),
ProjectStopError: HttpErrorInfo(
status.HTTP_503_SERVICE_UNAVAILABLE,
Expand Down

0 comments on commit 9ae8293

Please sign in to comment.