all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [docs: ] [PATCH pve-docs] add properties to execute in api-viewer
@ 2020-10-30 14:17 Moayad Almalat
  2020-10-30 14:32 ` Fabian Grünbichler
  0 siblings, 1 reply; 2+ messages in thread
From: Moayad Almalat @ 2020-10-30 14:17 UTC (permalink / raw)
  To: pve-devel

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [pve-devel] [docs: ] [PATCH pve-docs] add properties to execute in api-viewer
  2020-10-30 14:17 [pve-devel] [docs: ] [PATCH pve-docs] add properties to execute in api-viewer Moayad Almalat
@ 2020-10-30 14:32 ` Fabian Grünbichler
  0 siblings, 0 replies; 2+ messages in thread
From: Fabian Grünbichler @ 2020-10-30 14:32 UTC (permalink / raw)
  To: Proxmox VE development discussion, pve-devel

On October 30, 2020 3:17 pm, Moayad Almalat wrote:
> 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 +++++--

this is a generated file.. so either the dumper that generates it or the 
code that accesses it without checking for undefined needs to be fixed, 
not the generated file ;)

>  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
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 
> 




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-30 14:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-30 14:17 [pve-devel] [docs: ] [PATCH pve-docs] add properties to execute in api-viewer Moayad Almalat
2020-10-30 14:32 ` Fabian Grünbichler

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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal