Specially with OpenAPI specifications the field name may have gone
through a snake_case to camelCase translation. In Rust we want to
use snake_case for the fields, but that roundtrip is lossy.
I think the bad field name in Rust is undesirable, but it works. The bad
name is the serialized JSON does not work at all. This PR fixes that
problem.
Specially with OpenAPI specifications the field name may have gone through a
snake_case
tocamelCase
translation. In Rust we want to usesnake_case
for the fields, but that roundtrip is lossy.I think the bad field name in Rust is undesirable, but it works. The bad name is the serialized JSON does not work at all. This PR fixes that problem.
Part of the work for #226