Rust generator may need to override JSON name #97
Labels
generator
Issues related to the code generator
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Rarely, protos have annotations to override the JSON encoding:
https://github.com/googleapis/googleapis/blob/bb6b53e326ce2db403d18be7158c265e07948920/grafeas/v1/sbom.proto#L57
Sometimes, the mapping from OpenAPI ->
snake_case
->camelCase
may produce undesirable results (thinknetworkIP
->network_i_p
, yuck, andnetwork_ip
->networkIp
sigh). We may want to override theserde
field rename in a handful of cases.We should try to keep the generated code readable, and avoid decorating each filed with a
#[serde(...)]
attribute.The text was updated successfully, but these errors were encountered: