Skip to content

Commit

Permalink
fix: include namespace in property type for path parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawid Stachów committed Feb 6, 2025
1 parent cc37f30 commit 29356c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/server-axum/endpoints.j2
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub struct {{ endpoint.operation | pascalcase }}Path{
{%- for param in endpoint.parameters.path %}
{{- m::model_validation(model = param.model, options = options, regex_path="super::model::") }}
#[serde(rename = "{{ param.name }}"{% if property.required %}, skip_serializing_if = "Option::is_none"{% endif %})]
pub {{ m::property_name(name = param.name) }}: {{ m::type(property = param.model) }},
pub {{ m::property_name(name = param.name) }}: {{ m::type(property = param.model, ns = "super::model") }},
{% endfor %}
}
{% endif -%}
Expand Down

0 comments on commit 29356c1

Please sign in to comment.