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)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 636BF648E5 for ; Fri, 30 Oct 2020 15:17:18 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 5F49814CF7 for ; Fri, 30 Oct 2020 15:17:18 +0100 (CET) Received: from sara.proxmox.com (212-186-127-178.static.upcbusiness.at [212.186.127.178]) by firstgate.proxmox.com (Proxmox) with ESMTP id 910B614CEF for ; Fri, 30 Oct 2020 15:17:17 +0100 (CET) Received: by sara.proxmox.com (Postfix, from userid 1000) id 6C6B448A8; Fri, 30 Oct 2020 15:17:17 +0100 (CET) From: Moayad Almalat To: pve-devel@pve.proxmox.com Date: Fri, 30 Oct 2020 15:17:00 +0100 Message-Id: <20201030141700.237854-1-m.almalat@proxmox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 1 AWL 0.275 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 KHOP_HELO_FCRDNS 0.276 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 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com] Subject: [pve-devel] [docs: ] [PATCH pve-docs] add properties to execute in api-viewer 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: Fri, 30 Oct 2020 14:17:18 -0000 Signed-off-by: Moayad Almalat * when clicked on "execute" in api-view the page not handling. * In browser console printed this error: 'TypeError: Cannot read property 'properties' of undefined' * https://forum.proxmox.com/threads/api-browse-execute-returns-error.78257/ --- api-viewer/apidata.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api-viewer/apidata.js b/api-viewer/apidata.js index a438090..048509f 100644 --- a/api-viewer/apidata.js +++ b/api-viewer/apidata.js @@ -37324,8 +37324,11 @@ var pveapi = [ "protected" : 1, "proxyto" : "node", "returns" : { - "type" : "array" - } + "items" : { + "properties" : {}, + "type" : "array" + } + }, } }, "leaf" : 1, -- 2.20.1