diff --git a/client/src/api/schema/schema.ts b/client/src/api/schema/schema.ts index 85933281e36..f1cc2e5549d 100644 --- a/client/src/api/schema/schema.ts +++ b/client/src/api/schema/schema.ts @@ -13900,7 +13900,7 @@ export interface components { * Tags * @description The tags of the topic. */ - tags: string[]; + tags: components["schemas"]["HelpForumTag"][]; /** * Tags Descriptions * @description The descriptions of the tags of the topic. diff --git a/lib/galaxy/schema/help.py b/lib/galaxy/schema/help.py index 31bfa1c489a..24016c687c8 100644 --- a/lib/galaxy/schema/help.py +++ b/lib/galaxy/schema/help.py @@ -22,6 +22,12 @@ class HelpTempBaseModel(Model): model_config = ConfigDict(extra="allow") +class HelpForumTag(HelpTempBaseModel): + """Model for a tag in the help forum.""" + + pass + + class HelpForumPost(HelpTempBaseModel): """Model for a post in the help forum.""" @@ -59,7 +65,7 @@ class HelpForumTopic(Model): archived: Annotated[bool, Field(description="Whether the topic is archived.")] bookmarked: Annotated[Optional[bool], Field(default=None, description="Whether the topic is bookmarked.")] liked: Annotated[Optional[bool], Field(default=None, description="Whether the topic is liked.")] - tags: Annotated[list[str], Field(description="The tags of the topic.")] + tags: Annotated[list[HelpForumTag], Field(description="The tags of the topic.")] tags_descriptions: Annotated[ Optional[Any], Field(default=None, description="The descriptions of the tags of the topic.") ] @@ -79,12 +85,6 @@ class HelpForumCategory(HelpTempBaseModel): pass -class HelpForumTag(HelpTempBaseModel): - """Model for a tag in the help forum.""" - - pass - - class HelpForumGroup(HelpTempBaseModel): """Model for a group in the help forum."""