From d95a1f3241dd4dad4f449ca63bf27c7603a08e51 Mon Sep 17 00:00:00 2001 From: Gergely Brautigam <182850+Skarlso@users.noreply.github.com> Date: Tue, 6 Aug 2024 17:47:51 +0200 Subject: [PATCH] fix the website parsing as well --- wasm/app.go | 2 +- wasm/index.html | 20 ++++++++++---------- wasm/share.html | 20 ++++++++++---------- wasm/web/app.wasm | Bin 28407475 -> 28407692 bytes 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/wasm/app.go b/wasm/app.go index 7615a7a..c273cfc 100644 --- a/wasm/app.go +++ b/wasm/app.go @@ -344,7 +344,7 @@ func parseCRD(properties map[string]v1beta1.JSONSchemaProps, version string, req return nil, err } p.Properties = out - case properties[k].AdditionalProperties != nil: + case properties[k].AdditionalProperties != nil && properties[k].AdditionalProperties.Schema != nil: requiredList = v.Required out, err := parseCRD(properties[k].AdditionalProperties.Schema.Properties, version, properties[k].AdditionalProperties.Schema.Required, minimal) if err != nil { diff --git a/wasm/index.html b/wasm/index.html index d30d50e..ac30968 100644 --- a/wasm/index.html +++ b/wasm/index.html @@ -1,5 +1,5 @@ - +
@@ -13,22 +13,22 @@