* [pdm-devel] [PATCH proxmox] pve-api-types: schema2rust: handle `macro` keyword like we do `type`
@ 2025-10-23 8:17 Hannes Laimer
2025-10-23 14:20 ` [pdm-devel] superseded: " Hannes Laimer
0 siblings, 1 reply; 2+ messages in thread
From: Hannes Laimer @ 2025-10-23 8:17 UTC (permalink / raw)
To: pdm-devel
Firewall rules have a field named `macro`, this would trip up the
generated rust code. This fixes that.
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
---
Technically this did not happen yet, but it will. Once we use firewall
rule endpoints
pve-api-types/generator-lib/Schema2Rust.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/pve-api-types/generator-lib/Schema2Rust.pm b/pve-api-types/generator-lib/Schema2Rust.pm
index c5ac4aad..5c98d3be 100644
--- a/pve-api-types/generator-lib/Schema2Rust.pm
+++ b/pve-api-types/generator-lib/Schema2Rust.pm
@@ -713,6 +713,7 @@ sub namify_field : prototype($) {
}
return 'ty' if $out eq 'type';
+ return 'r#macro' if $out eq 'macro';
return $out;
}
--
2.47.3
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pdm-devel] superseded: [PATCH proxmox] pve-api-types: schema2rust: handle `macro` keyword like we do `type`
2025-10-23 8:17 [pdm-devel] [PATCH proxmox] pve-api-types: schema2rust: handle `macro` keyword like we do `type` Hannes Laimer
@ 2025-10-23 14:20 ` Hannes Laimer
0 siblings, 0 replies; 2+ messages in thread
From: Hannes Laimer @ 2025-10-23 14:20 UTC (permalink / raw)
To: pdm-devel
superseded-by:
https://lore.proxmox.com/pdm-devel/20251023141956.106640-1-h.laimer@proxmox.com/T/#u
On 10/23/25 10:18, Hannes Laimer wrote:
> Firewall rules have a field named `macro`, this would trip up the
> generated rust code. This fixes that.
>
> Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
> ---
> Technically this did not happen yet, but it will. Once we use firewall
> rule endpoints
>
> pve-api-types/generator-lib/Schema2Rust.pm | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/pve-api-types/generator-lib/Schema2Rust.pm b/pve-api-types/generator-lib/Schema2Rust.pm
> index c5ac4aad..5c98d3be 100644
> --- a/pve-api-types/generator-lib/Schema2Rust.pm
> +++ b/pve-api-types/generator-lib/Schema2Rust.pm
> @@ -713,6 +713,7 @@ sub namify_field : prototype($) {
> }
>
> return 'ty' if $out eq 'type';
> + return 'r#macro' if $out eq 'macro';
>
> return $out;
> }
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-23 14:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-23 8:17 [pdm-devel] [PATCH proxmox] pve-api-types: schema2rust: handle `macro` keyword like we do `type` Hannes Laimer
2025-10-23 14:20 ` [pdm-devel] superseded: " Hannes Laimer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.