Skip to content

refactor: use serde rename_all instead of per-field renames - #15

Merged
sachiniyer merged 1 commit into
mainfrom
siyer/serde-rename-all
Feb 13, 2026
Merged

refactor: use serde rename_all instead of per-field renames#15
sachiniyer merged 1 commit into
mainfrom
siyer/serde-rename-all

Conversation

@sachiniyer

Copy link
Copy Markdown
Contributor

Replace repetitive per-field #[serde(rename = "camelCase")] attributes
on Bug, BugReview, Repo, and ApiError with a single struct-level
#[serde(rename_all = "camelCase")]. Retains the individual
#[serde(rename = "type")] on ApiError.error_type since "type" is a
keyword, not a camelCase transform.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Replace repetitive per-field #[serde(rename = "camelCase")] attributes
on Bug, BugReview, Repo, and ApiError with a single struct-level
#[serde(rename_all = "camelCase")]. Retains the individual
#[serde(rename = "type")] on ApiError.error_type since "type" is a
keyword, not a camelCase transform.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

sachiniyer commented Feb 13, 2026

Copy link
Copy Markdown
Contributor Author

@sachiniyer
sachiniyer marked this pull request as ready for review February 13, 2026 05:47
@sachiniyer
sachiniyer merged commit b6bc5a2 into main Feb 13, 2026
11 checks passed

Copy link
Copy Markdown
Contributor Author

Merge activity

@sachiniyer
sachiniyer deleted the siyer/serde-rename-all branch February 13, 2026 05:52
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