Skip to content

Conversation

@GabrielDertoni
Copy link
Contributor

The current implementation mangles names that wouldn't make valid Rust identifiers. However, when serializing and deserializing the actual name of the identifiers is expected to be used (for reading from yaml or json files, for example). This change uses the #[serde(rename = "...")] attribute in order to restore the original identifiers in (de)serialization.

@m-dahl
Copy link
Collaborator

m-dahl commented Mar 15, 2023

Great, thank you for the contribution! I will try to make a release including this soon (maybe next week).

@m-dahl m-dahl merged commit 0ed365f into sequenceplanner:master Mar 15, 2023
@GabrielDertoni GabrielDertoni deleted the serde-rename branch April 6, 2023 17:08
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.

2 participants