Skip to content

Commit

Permalink
Make elements_datatypes optional in schema
Browse files Browse the repository at this point in the history
This property is conditionally serialized in some situations only so it might be None sometimes.
  • Loading branch information
davelopez committed Sep 26, 2023
1 parent c029991 commit 25c3c6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5131,7 +5131,7 @@ export interface components {
* Elements Datatypes
* @description A set containing all the different element datatypes in the collection.
*/
elements_datatypes: string[];
elements_datatypes?: string[];
/**
* HID
* @description The index position of this item in the History.
Expand Down
4 changes: 2 additions & 2 deletions lib/galaxy/schema/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,8 +1033,8 @@ class HDCADetailed(HDCASummary):

populated: bool = PopulatedField
elements: List[DCESummary] = ElementsField
elements_datatypes: Set[str] = Field(
..., description="A set containing all the different element datatypes in the collection."
elements_datatypes: Optional[Set[str]] = Field(
None, description="A set containing all the different element datatypes in the collection."
)


Expand Down

0 comments on commit 25c3c6c

Please sign in to comment.