From 29159b5ad154850b25025cc19bb3deb3ee64713b Mon Sep 17 00:00:00 2001 From: Alexander Kim Date: Tue, 12 Nov 2024 13:46:26 -0800 Subject: [PATCH 1/2] adding optional field for FieldColumns --- common/messages.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/messages.go b/common/messages.go index d573329..4277dcf 100644 --- a/common/messages.go +++ b/common/messages.go @@ -40,6 +40,9 @@ type View struct { Name string `json:"name" msgpack:"name"` LayoutType string `json:"layout_type" msgpack:"layout_type"` DefaultRequests []string `json:"default_requests" msgpack:"default_requests"` + + // optional UI view settins: more exist on FE "LayoutOptions" but aren't all exposed via schema + FieldColumns int `json:"field_columns" msgpack:"field_columns"` } // A request to get the schema required by the Extension for its configuration and requests. From a5ae3198b3124bba8a6b4089f56f7dd1100f6839 Mon Sep 17 00:00:00 2001 From: Alexander Kim Date: Wed, 13 Nov 2024 10:42:13 -0800 Subject: [PATCH 2/2] added omit empty --- common/messages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/messages.go b/common/messages.go index 4277dcf..067e6f5 100644 --- a/common/messages.go +++ b/common/messages.go @@ -42,7 +42,7 @@ type View struct { DefaultRequests []string `json:"default_requests" msgpack:"default_requests"` // optional UI view settins: more exist on FE "LayoutOptions" but aren't all exposed via schema - FieldColumns int `json:"field_columns" msgpack:"field_columns"` + FieldColumns int `json:"field_columns,omitempty" msgpack:"field_columns,omitempty"` } // A request to get the schema required by the Extension for its configuration and requests.