diff --git a/client/src/api/schema/schema.ts b/client/src/api/schema/schema.ts index b625cfe27b14..6020ed5bb126 100644 --- a/client/src/api/schema/schema.ts +++ b/client/src/api/schema/schema.ts @@ -8925,6 +8925,8 @@ export interface components { /** Name */ name: string; }; + /** ObjectStoreTemplateSummaries */ + ObjectStoreTemplateSummaries: components["schemas"]["ObjectStoreTemplateSummary"][]; /** ObjectStoreTemplateSummary */ ObjectStoreTemplateSummary: { /** Badges */ @@ -9651,8 +9653,6 @@ export interface components { RootModel_Dict_str__int__: { [key: string]: number | undefined; }; - /** RootModel[List[galaxy.objectstore.templates.models.ObjectStoreTemplateSummary]] */ - RootModel_List_ObjectStoreTemplateSummary__: components["schemas"]["ObjectStoreTemplateSummary"][]; /** SearchJobsPayload */ SearchJobsPayload: { /** @@ -18792,7 +18792,7 @@ export interface operations { /** @description A list of the configured object store templates. */ 200: { content: { - "application/json": components["schemas"]["RootModel_List_ObjectStoreTemplateSummary__"]; + "application/json": components["schemas"]["ObjectStoreTemplateSummaries"]; }; }; /** @description Validation Error */ diff --git a/lib/galaxy/objectstore/templates/models.py b/lib/galaxy/objectstore/templates/models.py index 4327c9ef9484..9f225786194a 100644 --- a/lib/galaxy/objectstore/templates/models.py +++ b/lib/galaxy/objectstore/templates/models.py @@ -203,7 +203,9 @@ class ObjectStoreTemplate(ObjectStoreTemplateBase): ObjectStoreTemplateCatalog = RootModel[List[ObjectStoreTemplate]] -ObjectStoreTemplateSummaries = RootModel[List[ObjectStoreTemplateSummary]] + +class ObjectStoreTemplateSummaries(RootModel): + root: List[ObjectStoreTemplateSummary] def template_to_configuration(