From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 3FFC26BBBA for ; Mon, 14 Dec 2020 11:21:20 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 32D8514CE3 for ; Mon, 14 Dec 2020 11:21:20 +0100 (CET) Received: from dev.dominic.proxmox.com (212-186-127-178.static.upcbusiness.at [212.186.127.178]) by firstgate.proxmox.com (Proxmox) with ESMTP id A321814CD6 for ; Mon, 14 Dec 2020 11:21:18 +0100 (CET) Received: by dev.dominic.proxmox.com (Postfix, from userid 0) id 765D8224E1; Mon, 14 Dec 2020 11:21:18 +0100 (CET) From: =?UTF-8?q?Dominic=20J=C3=A4ger?= To: pve-devel@lists.proxmox.com Date: Mon, 14 Dec 2020 11:20:52 +0100 Message-Id: <20201214102052.76711-1-d.jaeger@proxmox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 1 AWL -0.617 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods KAM_NUMSUBJECT 0.5 Subject ends in numbers excluding current years KHOP_HELO_FCRDNS 0.399 Relay HELO differs from its IP's reverse DNS NO_DNS_FOR_FROM 0.379 Envelope sender has no MX or A DNS records SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Subject: [pve-devel] [PATCH pve-common] JSONSchema: Increase vmid option minimum to 100 X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2020 10:21:20 -0000 The API standard_option pve-vmid always checks the format pve-vmid. The format pve-vmid requires the vmid to be >=100. This is correct, because IDs 1-99 are reserved. To display this correctly in the API documentation (API viewer, qm man pages), we have to set the minimum to 100 in the API standard_option. Signed-off-by: Dominic Jäger --- https://forum.proxmox.com/threads/qm-importovf-man-page.80632/ src/PVE/JSONSchema.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 29ada5b..b4596d3 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -58,7 +58,7 @@ sub get_standard_option { register_standard_option('pve-vmid', { description => "The (unique) ID of the VM.", type => 'integer', format => 'pve-vmid', - minimum => 1 + minimum => 100, }); register_standard_option('pve-node', { -- 2.20.1