AppManager: Fix auth schema
Change-Id: Iab9e76795467b9ed9e6ad7b8389473eb71d49c89
diff --git a/core/installer/app.go b/core/installer/app.go
index 9719134..c9c7ced 100644
--- a/core/installer/app.go
+++ b/core/installer/app.go
@@ -723,7 +723,13 @@
if vv, ok := v[k]; ok && vv != nil {
if mv, ok := val.(map[string]any); ok {
// TODO(gio): check that it is actually map
- ret[k] = merge(mv, vv.(map[string]any))
+ mm, ok := vv.(map[string]any)
+ if !ok {
+ // TODO(gio): handle #Network and others
+ ret[k] = vv
+ } else {
+ ret[k] = merge(mv, mm)
+ }
} else {
ret[k] = vv
}
diff --git a/core/installer/schema.go b/core/installer/schema.go
index e575aa5..12a79b0 100644
--- a/core/installer/schema.go
+++ b/core/installer/schema.go
@@ -178,6 +178,7 @@
#Auth: {
enabled: bool | false
groups: string | *""
+ noAuthPathPatterns: [...string] | *[]
}
value: #Auth