Skip to content

refactor: serde style refactoring#152

Merged
BugenZhao merged 1 commit intomainfrom
bz/tasteless-condor
May 4, 2026
Merged

refactor: serde style refactoring#152
BugenZhao merged 1 commit intomainfrom
bz/tasteless-condor

Conversation

@BugenZhao
Copy link
Copy Markdown
Member

No description provided.

Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request integrates the serde_with crate to simplify serialization logic across several structs, such as RenderedToolSchema, StructuredOutputsParams, and ImageUrl. By applying the #[serde_with::skip_serializing_none] attribute, the changes remove redundant skip_serializing_if annotations on optional fields. A review comment suggests adding #[serde(default)] to the detail field in the ImageUrl struct to ensure it is correctly treated as optional during deserialization, which maintains consistency with other refactored components.

Comment thread src/server/src/routes/openai/utils/types.rs
@BugenZhao BugenZhao merged commit 311d6e6 into main May 4, 2026
3 checks passed
@BugenZhao BugenZhao deleted the bz/tasteless-condor branch May 4, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant