From c56a123576b790528a9e4a030f1c0679b11c6665 Mon Sep 17 00:00:00 2001 From: Ilya Mashchenko Date: Thu, 14 Mar 2024 20:22:42 +0200 Subject: go.d.plugin: jsonschema allow array/object to be null (#17166) --- .../go.d.plugin/modules/openvpn/config_schema.json | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/go/collectors/go.d.plugin/modules/openvpn/config_schema.json') diff --git a/src/go/collectors/go.d.plugin/modules/openvpn/config_schema.json b/src/go/collectors/go.d.plugin/modules/openvpn/config_schema.json index 0ad04b1dcb..0b98b70e8d 100644 --- a/src/go/collectors/go.d.plugin/modules/openvpn/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/openvpn/config_schema.json @@ -27,12 +27,18 @@ "per_user_stats": { "title": "User selector", "description": "Configuration for monitoring specific users. If left empty, no user stats will be collected.", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "includes": { "title": "Include", "description": "Include users whose usernames match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Username pattern", "type": "string" @@ -42,7 +48,10 @@ "excludes": { "title": "Exclude", "description": "Exclude users whose usernames match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Username pattern", "type": "string" -- cgit v1.2.3