Skip to content

refactor(common): KeyId and ErrorDescription get their serde conversions from text_conversions! - #684

Draft
PiquelChips wants to merge 1 commit into
mainfrom
refactor/544-boundary-text-conversions
Draft

PiquelChips wants to merge 1 commit into
mainfrom
refactor/544-boundary-text-conversions

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Part of #544

KeyId and ErrorDescription still wrote out by hand the TryFrom<String> and From<_> for String pair that their #[serde(try_from = "String", into = "String")] names. #611 added text_conversions! for exactly that pair, so they now use it, as ClientId, Handle and the others do.

Unchanged

  • TryFrom<String> still parses through FromStr, so its error types stay InvalidKeyId and InvalidDescription.
  • From<_> for String now writes what Display writes. For both types that is the inner string, unchanged, so serde writes the same text.
  • cargo semver-checks -p sourceorigin-common --baseline-rev origin/main --all-features: no semver update required.

No test changed.

Note

Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 (via T3 Code)

@PiquelChips PiquelChips added sdk Rust and TypeScript SDKs refactor No behviour changes labels Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-project-automation github-project-automation Bot moved this to Needs Triage in sourceorigin.dev Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor No behviour changes sdk Rust and TypeScript SDKs

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

1 participant