Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing support for option json_name #83

Open
vladgon opened this issue Jan 23, 2024 · 1 comment
Open

Missing support for option json_name #83

vladgon opened this issue Jan 23, 2024 · 1 comment

Comments

@vladgon
Copy link

vladgon commented Jan 23, 2024

// A snazzy new shirt!
message Shirt {
  enum Size {
    SMALL = 0;
    MEDIUM = 1;
    LARGE = 2;
  }

  string color = 1 [json_name = "color_custom"];
  Size size = 2;
}
@vladgon
Copy link
Author

vladgon commented Jan 23, 2024

Looks like not an issue can be addressed by

.field_attribute("color", "#[serde(rename(serialize = \"color_custom\", deserialize = \"color_custom\"))]")

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

No branches or pull requests

1 participant