From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 06ED41FF165 for ; Thu, 23 Oct 2025 16:20:19 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A227FC19C; Thu, 23 Oct 2025 16:20:46 +0200 (CEST) Message-ID: <8284a52e-9214-4d44-9fe7-0e912be0ed47@proxmox.com> Date: Thu, 23 Oct 2025 16:20:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: pdm-devel@lists.proxmox.com References: <20251023081747.24125-1-h.laimer@proxmox.com> Content-Language: en-US From: Hannes Laimer In-Reply-To: <20251023081747.24125-1-h.laimer@proxmox.com> X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1761229235645 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.043 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pdm-devel] superseded: [PATCH proxmox] pve-api-types: schema2rust: handle `macro` keyword like we do `type` X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "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 > --- > 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