Fix optional fields being validated as missing.

Fixes https://github.com/galaxyproject/galaxy/issues/16135
This commit is contained in:
John Chilton
2023-05-23 16:30:30 -04:00
parent 8b926e676f
commit c9109317ea
2 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -4539,12 +4539,12 @@ export interface components {
* Latest installed revision
* @description Most recent version available on the tool shed
*/
latest_installable_revision: string;
latest_installable_revision?: string;
/**
* Repository deprecated
* @description Repository has been depreciated on the tool shed
*/
repository_deprecated: string;
repository_deprecated?: string;
/** Revision Update */
revision_update: string;
/** Revision Upgrade */
+4 -3
View File
@@ -2306,13 +2306,14 @@ class ToolShedRepositoryChangeset(ToolShedRepository):
class InstalledRepositoryToolShedStatus(Model):
# See https://github.com/galaxyproject/galaxy/issues/10453
latest_installable_revision: str = Field(
# See https://github.com/galaxyproject/galaxy/issues/10453 , bad booleans
# See https://github.com/galaxyproject/galaxy/issues/16135 , optional fields
latest_installable_revision: Optional[str] = Field(
title="Latest installed revision", description="Most recent version available on the tool shed"
)
revision_update: str
revision_upgrade: Optional[str]
repository_deprecated: str = Field(
repository_deprecated: Optional[str] = Field(
title="Repository deprecated", description="Repository has been depreciated on the tool shed"
)