Skip to content

feat: custom serde serializer/deserializer impl#1043

Closed
JesseTheRobot wants to merge 1 commit into
masterfrom
feat/canonical-json-serdes
Closed

feat: custom serde serializer/deserializer impl#1043
JesseTheRobot wants to merge 1 commit into
masterfrom
feat/canonical-json-serdes

Conversation

@JesseTheRobot

Copy link
Copy Markdown
Member

Adds a custom "canonical JSON" ser/des for use in our API The reason we need this is enforcing correct formatting with #[serde(with ...)] and #[serde(rename_all = "camelCase")] was error prone and oftentimes required duplicate structures to prevent these attributes from interfereing with other ser/des targets (i.e the toml config) NOTE: claude produced this version of the code, I still need to more thoroughly review it.

Describe the changes
A clear and concise description of what the bug fix, feature, or improvement is.

Related Issue(s)
Please link to the issue(s) that will be closed with this PR.

Checklist

  • Tests have been added/updated for the changes.
  • Documentation has been updated for the changes (if applicable).
  • The code follows Rust's style guidelines.

Additional Context
Add any other context about the pull request here.

Adds a custom "canonical JSON" ser/des for use in our API
The reason we need this is enforcing correct formatting with #[serde(with ...)] and #[serde(rename_all = "camelCase")] was error prone and oftentimes required duplicate structures to prevent these attributes from interfereing with other ser/des targets (i.e the toml config)
NOTE: claude produced this version of the code, I still need to more thoroughly review it.
@JesseTheRobot

Copy link
Copy Markdown
Member Author

closing as merged into #1029

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