From 5a8897ea95f7f8627da373c70a5827af00d3200c Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Mon, 16 Dec 2024 15:00:52 +0000 Subject: [PATCH] Replace deprecated ``example`` parameter of ``fastapi.Path()`` See https://fastapi.tiangolo.com/reference/parameters/#fastapi.Path --- client/src/api/schema/schema.ts | 1 - lib/galaxy/webapps/galaxy/services/library_contents.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/api/schema/schema.ts b/client/src/api/schema/schema.ts index d1ce7e7aaa2f..3a7c79e4de31 100644 --- a/client/src/api/schema/schema.ts +++ b/client/src/api/schema/schema.ts @@ -28958,7 +28958,6 @@ export interface operations { }; path: { library_id: string; - /** @example F0123456789ABCDEF */ id: string; }; cookie?: never; diff --git a/lib/galaxy/webapps/galaxy/services/library_contents.py b/lib/galaxy/webapps/galaxy/services/library_contents.py index 971c356f56d3..ee94caa1fba2 100644 --- a/lib/galaxy/webapps/galaxy/services/library_contents.py +++ b/lib/galaxy/webapps/galaxy/services/library_contents.py @@ -58,7 +58,7 @@ str, Path( title="The encoded ID of a library folder or dataset.", - example="F0123456789ABCDEF", + examples=["F0123456789ABCDEF"], min_length=16, pattern="F?[0-9a-fA-F]+", ),