Skip to content

fix(dcs): attachments breaking due to serialization issue#796

Merged
ehayes2000 merged 1 commit intomainfrom
fix-basic-doc-serialization
Jan 6, 2026
Merged

fix(dcs): attachments breaking due to serialization issue#796
ehayes2000 merged 1 commit intomainfrom
fix-basic-doc-serialization

Conversation

@ehayes2000
Copy link
Copy Markdown
Contributor

  • Add tests for round trip serializing on BasicDocument
  • Remove skip_serializing_if=Option::is_none from BasicDocument
  • Improve logging

@ehayes2000
Copy link
Copy Markdown
Contributor Author

Round trip tests like the one I wrote here could be easily generated with a macro. Could be good to start doing this on core structs that use funky serde tags.


// fetch documents then build request
#[tracing::instrument(skip(ctx, chat, incoming_message), err)]
#[tracing::instrument(skip(ctx, chat, incoming_message, static_system_prompt, jwt), err)]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you are skipping every param here, you can just use skip_all

@ehayes2000 ehayes2000 merged commit efc1494 into main Jan 6, 2026
36 checks passed
@ehayes2000 ehayes2000 deleted the fix-basic-doc-serialization branch January 6, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants