Skip to content

Commit

Permalink
Reorder model union from less to more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Mar 20, 2024
1 parent 9b86214 commit 25563b7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
56 changes: 28 additions & 28 deletions client/src/api/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6968,12 +6968,12 @@ export interface components {
* Can contain different views and kinds of items.
*/
HistoryContentsResult: (
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
| components["schemas"]["HDADetailed"]
| components["schemas"]["HDASummary"]
| components["schemas"]["HDCADetailed"]
| components["schemas"]["HDCASummary"]
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
)[];
/**
* HistoryContentsWithStatsResult
Expand All @@ -6985,12 +6985,12 @@ export interface components {
* @description The items matching the search query. Only the items fitting in the current page limit will be returned.
*/
contents: (
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
| components["schemas"]["HDADetailed"]
| components["schemas"]["HDASummary"]
| components["schemas"]["HDCADetailed"]
| components["schemas"]["HDCASummary"]
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
)[];
/**
* Stats
Expand Down Expand Up @@ -13577,12 +13577,12 @@ export interface operations {
200: {
content: {
"application/json": (
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
| components["schemas"]["HDADetailed"]
| components["schemas"]["HDASummary"]
| components["schemas"]["HDCADetailed"]
| components["schemas"]["HDCASummary"]
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
)[];
};
};
Expand Down Expand Up @@ -16505,19 +16505,19 @@ export interface operations {
200: {
content: {
"application/json":
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
| components["schemas"]["HDADetailed"]
| components["schemas"]["HDASummary"]
| components["schemas"]["HDCADetailed"]
| components["schemas"]["HDCASummary"]
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
| (
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
| components["schemas"]["HDADetailed"]
| components["schemas"]["HDASummary"]
| components["schemas"]["HDCADetailed"]
| components["schemas"]["HDCASummary"]
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
)[];
};
};
Expand Down Expand Up @@ -17096,12 +17096,12 @@ export interface operations {
200: {
content: {
"application/json":
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
| components["schemas"]["HDADetailed"]
| components["schemas"]["HDASummary"]
| components["schemas"]["HDCADetailed"]
| components["schemas"]["HDCASummary"]
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"];
| components["schemas"]["HDCASummary"];
};
};
/** @description Validation Error */
Expand Down Expand Up @@ -17148,12 +17148,12 @@ export interface operations {
200: {
content: {
"application/json":
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
| components["schemas"]["HDADetailed"]
| components["schemas"]["HDASummary"]
| components["schemas"]["HDCADetailed"]
| components["schemas"]["HDCASummary"]
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"];
| components["schemas"]["HDCASummary"];
};
};
/** @description Validation Error */
Expand Down Expand Up @@ -17381,19 +17381,19 @@ export interface operations {
200: {
content: {
"application/json":
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
| components["schemas"]["HDADetailed"]
| components["schemas"]["HDASummary"]
| components["schemas"]["HDCADetailed"]
| components["schemas"]["HDCASummary"]
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
| (
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
| components["schemas"]["HDADetailed"]
| components["schemas"]["HDASummary"]
| components["schemas"]["HDCADetailed"]
| components["schemas"]["HDCASummary"]
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
)[];
};
};
Expand Down Expand Up @@ -17439,12 +17439,12 @@ export interface operations {
200: {
content: {
"application/json":
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
| components["schemas"]["HDADetailed"]
| components["schemas"]["HDASummary"]
| components["schemas"]["HDCADetailed"]
| components["schemas"]["HDCASummary"]
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"];
| components["schemas"]["HDCASummary"];
};
};
/** @description Validation Error */
Expand Down Expand Up @@ -17490,12 +17490,12 @@ export interface operations {
200: {
content: {
"application/json":
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
| components["schemas"]["HDADetailed"]
| components["schemas"]["HDASummary"]
| components["schemas"]["HDCADetailed"]
| components["schemas"]["HDCASummary"]
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"];
| components["schemas"]["HDCASummary"];
};
};
/** @description Validation Error */
Expand Down Expand Up @@ -17722,12 +17722,12 @@ export interface operations {
200: {
content: {
"application/json": (
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
| components["schemas"]["HDADetailed"]
| components["schemas"]["HDASummary"]
| components["schemas"]["HDCADetailed"]
| components["schemas"]["HDCASummary"]
| components["schemas"]["CustomHistoryHDA"]
| components["schemas"]["CustomHistoryHDCA"]
)[];
};
};
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/schema/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -3216,9 +3216,9 @@ class CustomHistoryHDCA(HDCADetailed):
AnyHDCA = Union[HDCADetailed, HDCASummary]
AnyHistoryContentItem = Annotated[
Union[
AnyCustomHistoryItem,
AnyHDA,
AnyHDCA,
AnyCustomHistoryItem,
],
Field(union_mode="left_to_right"),
]
Expand Down

0 comments on commit 25563b7

Please sign in to comment.