Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Enums in API docs #15740

Merged
merged 2 commits into from
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint_openapi_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7']
python-version: ['3.7', '3.11']
steps:
- uses: actions/checkout@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions lib/galaxy/schema/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -3011,9 +3011,9 @@ class ShareWithPayload(Model):
description=(
"User choice for sharing resources which its contents may be restricted:\n"
" - None: The user did not choose anything yet or no option is needed.\n"
f" - {SharingOptions.make_public}: The contents of the resource will be made publicly accessible.\n"
f" - {SharingOptions.make_accessible_to_shared}: This will automatically create a new `sharing role` allowing protected contents to be accessed only by the desired users.\n"
f" - {SharingOptions.no_changes}: This won't change the current permissions for the contents. The user which this resource will be shared may not be able to access all its contents.\n"
f" - {SharingOptions.make_public.value}: The contents of the resource will be made publicly accessible.\n"
f" - {SharingOptions.make_accessible_to_shared.value}: This will automatically create a new `sharing role` allowing protected contents to be accessed only by the desired users.\n"
f" - {SharingOptions.no_changes.value}: This won't change the current permissions for the contents. The user which this resource will be shared may not be able to access all its contents.\n"
),
)

Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/webapps/galaxy/api/folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def set_permissions(
title="Action",
description=(
"Indicates what action should be performed on the Library. "
f"Currently only `{LibraryFolderPermissionAction.set_permissions}` is supported."
f"Currently only `{LibraryFolderPermissionAction.set_permissions.value}` is supported."
),
),
payload: LibraryFolderPermissionsPayload = Body(...),
Expand Down