diff --git a/client/src/api/schema/schema.ts b/client/src/api/schema/schema.ts index 1577170c9663..af2fc0a5b8bb 100644 --- a/client/src/api/schema/schema.ts +++ b/client/src/api/schema/schema.ts @@ -7031,17 +7031,17 @@ export interface components { * Avatar Template * @description The avatar template of the user. */ - avatar_template: string; + avatar_template: string | null; /** * Blurb * @description The blurb of the post. */ - blurb: string; + blurb: string | null; /** * Created At * @description The creation date of the post. */ - created_at: string; + created_at: string | null; /** * Id * @description The ID of the post. @@ -7051,27 +7051,27 @@ export interface components { * Like Count * @description The number of likes of the post. */ - like_count: number; + like_count: number | null; /** * Name * @description The name of the post. */ - name: string; + name: string | null; /** * Post Number * @description The post number of the post. */ - post_number: number; + post_number: number | null; /** * Topic Id * @description The ID of the topic of the post. */ - topic_id: number; + topic_id: number | null; /** * Username * @description The username of the post author. */ - username: string; + username: string | null; [key: string]: unknown | undefined; }; /** diff --git a/lib/galaxy/schema/help.py b/lib/galaxy/schema/help.py index ebe2da9370db..6ecb83513b49 100644 --- a/lib/galaxy/schema/help.py +++ b/lib/galaxy/schema/help.py @@ -27,14 +27,14 @@ class HelpForumPost(HelpTempBaseModel): """Model for a post in the help forum.""" id: Annotated[int, Field(description="The ID of the post.")] - name: Annotated[str, Field(description="The name of the post.")] - username: Annotated[str, Field(description="The username of the post author.")] - avatar_template: Annotated[str, Field(description="The avatar template of the user.")] - created_at: Annotated[str, Field(description="The creation date of the post.")] - like_count: Annotated[int, Field(description="The number of likes of the post.")] - blurb: Annotated[str, Field(description="The blurb of the post.")] - post_number: Annotated[int, Field(description="The post number of the post.")] - topic_id: Annotated[int, Field(description="The ID of the topic of the post.")] + name: Annotated[Optional[str], Field(description="The name of the post.")] + username: Annotated[Optional[str], Field(description="The username of the post author.")] + avatar_template: Annotated[Optional[str], Field(description="The avatar template of the user.")] + created_at: Annotated[Optional[str], Field(description="The creation date of the post.")] + like_count: Annotated[Optional[int], Field(description="The number of likes of the post.")] + blurb: Annotated[Optional[str], Field(description="The blurb of the post.")] + post_number: Annotated[Optional[int], Field(description="The post number of the post.")] + topic_id: Annotated[Optional[int], Field(description="The ID of the topic of the post.")] class HelpForumTopic(Model):