add missed serde macros in types

When attribute is being locally renamed we miss the serde macros causing
deserialization to fail.
Change-Id: Ia8d8298c938ea088d1db62bf97df6defc41d93bc
This commit is contained in:
Artem Goncharov
2025年05月21日 18:05:35 +02:00
parent d3f1f124e5
commit e9a60ff553

View File

@@ -157,6 +157,9 @@ use {{ mod }};
#[derive(Deserialize, Serialize)]
pub {{ subtype.base_type }} {{ subtype.name }} {
{%- for k, v in subtype.fields | dictsort %}
{% if v.serde_macros -%}
{{ v.serde_macros }}
{% endif -%}
pub {{ v.local_name }}: {{ v.type_hint }},
{%- endfor %}
}
Reference in New Issue
openstack/codegenerator
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.