From: Moayad Almalat <m.almalat@proxmox.com>
To: pve-devel@pve.proxmox.com
Subject: [pve-devel] [docs: ] [PATCH pve-docs] add properties to execute in api-viewer
Date: Fri, 30 Oct 2020 15:17:00 +0100 [thread overview]
Message-ID: <20201030141700.237854-1-m.almalat@proxmox.com> (raw)
Signed-off-by: Moayad Almalat <m.almalat@proxmox.com>
* 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
next reply other threads:[~2020-10-30 14:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-30 14:17 Moayad Almalat [this message]
2020-10-30 14:32 ` Fabian Grünbichler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201030141700.237854-1-m.almalat@proxmox.com \
--to=m.almalat@proxmox.com \
--cc=pve-devel@pve.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.