Add update catalog support for plugin based catalogs in handler and go sdk (#1673)

* Create catalog service handler for updating plugin.  Add tests for handler and run make fmt. Silently drop attributes where the value is nil when creating the catalog or set.
This commit is contained in:
Todd authored and GitHub committed 2021-11-09 14:42:48 -07:00
1 parent 48ac8b8f0b
commit 050553ffcf
12 files changed
+437 -23

No files matched your search

+3 -2
View File
@@ -71,8 +71,9 @@ func patchM(dst, src map[string]interface{}) map[string]interface{} {
// If the value in dst a map, continue to patch
dst[k] = patchM(y, x)
} else {
// Overwrite
dst[k] = x
// Overwrite after stripping out keys to nil values
newX := patchM(make(map[string]interface{}), x)
dst[k] = newX
}
default: