Skip to content

Commit

Permalink
Fix UpdateHistoryContentsBatchPayload model_config
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Mar 19, 2024
1 parent df60d8e commit 1d38546
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions client/src/api/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11665,6 +11665,7 @@ export interface components {
* @description A list of content items to update with the changes.
*/
items: components["schemas"]["UpdateContentItem"][];
[key: string]: unknown | undefined;
};
/**
* UpdateHistoryContentsPayload
Expand Down
5 changes: 2 additions & 3 deletions lib/galaxy/schema/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,20 +1100,19 @@ class UpdateContentItem(HistoryContentItem):
class UpdateHistoryContentsBatchPayload(Model):
"""Contains property values that will be updated for all the history `items` provided."""

model_config = ConfigDict(extra="allow")

items: List[UpdateContentItem] = Field(
...,
title="Items",
description="A list of content items to update with the changes.",
)
model_config = ConfigDict(
extra="allow",
json_schema_extra={
"example": {
"items": [{"history_content_type": "dataset", "id": "string"}],
"visible": False,
}
}
},
)


Expand Down

0 comments on commit 1d38546

Please sign in to comment.