Skip to content

Commit 78bb88c

Browse files
authored
Merge pull request #20627 from guerler/fix_visualization_plugin_schema
[24.2] Correct visualization response schema
2 parents 5250794 + 976414b commit 78bb88c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

client/src/api/schema/schema.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17932,11 +17932,6 @@ export interface components {
1793217932
* @description The entry point of the plugin.
1793317933
*/
1793417934
entry_point: Record<string, never>;
17935-
/**
17936-
* Groups
17937-
* @description The groups of the plugin.
17938-
*/
17939-
groups?: Record<string, never>[] | null;
1794017935
/**
1794117936
* Href
1794217937
* @description The href of the plugin.
@@ -17961,7 +17956,7 @@ export interface components {
1796117956
* Settings
1796217957
* @description The settings of the plugin.
1796317958
*/
17964-
settings: Record<string, never>[];
17959+
settings?: Record<string, never>[] | null;
1796517960
/**
1796617961
* Specs
1796717962
* @description The specs of the plugin.
@@ -17977,6 +17972,11 @@ export interface components {
1797717972
* @description The title of the plugin.
1797817973
*/
1797917974
title?: string | null;
17975+
/**
17976+
* Tracks
17977+
* @description The tracks of the plugin.
17978+
*/
17979+
tracks?: Record<string, never>[] | null;
1798017980
};
1798117981
/** VisualizationRevisionResponse */
1798217982
VisualizationRevisionResponse: {

lib/galaxy/schema/visualization.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,15 @@ class VisualizationPluginResponse(Model):
180180
title="Entry Point",
181181
description="The entry point of the plugin.",
182182
)
183-
settings: List[Dict] = Field(
184-
...,
183+
settings: Optional[List[Dict]] = Field(
184+
None,
185185
title="Settings",
186186
description="The settings of the plugin.",
187187
)
188-
groups: Optional[List[Dict]] = Field(
188+
tracks: Optional[List[Dict]] = Field(
189189
None,
190-
title="Groups",
191-
description="The groups of the plugin.",
190+
title="Tracks",
191+
description="The tracks of the plugin.",
192192
)
193193
specs: Optional[Dict] = Field(
194194
None,

0 commit comments

Comments
 (0)