From 197046ab4f41ecefe6a1bb66afcd9d97dcaf96a9 Mon Sep 17 00:00:00 2001 From: shahzad Date: Wed, 6 May 2020 19:58:10 +0200 Subject: [PATCH 1/2] fix type --- x-pack/plugins/uptime/common/runtime_types/monitor/state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/uptime/common/runtime_types/monitor/state.ts b/x-pack/plugins/uptime/common/runtime_types/monitor/state.ts index 90aa692f89a42f..01305120bede45 100644 --- a/x-pack/plugins/uptime/common/runtime_types/monitor/state.ts +++ b/x-pack/plugins/uptime/common/runtime_types/monitor/state.ts @@ -9,7 +9,7 @@ import * as t from 'io-ts'; export const CheckMonitorType = t.intersection([ t.partial({ name: t.string, - ip: t.union([t.array(t.string), t.string]), + ip: t.union([t.array(t.union([t.string, t.null])), t.string]), }), t.type({ status: t.string, From 330133e6385d7c23638152f38eddf240bab31f8f Mon Sep 17 00:00:00 2001 From: shahzad Date: Wed, 6 May 2020 20:00:03 +0200 Subject: [PATCH 2/2] null type --- x-pack/plugins/uptime/common/runtime_types/monitor/state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/uptime/common/runtime_types/monitor/state.ts b/x-pack/plugins/uptime/common/runtime_types/monitor/state.ts index 01305120bede45..b3c39e5180adf3 100644 --- a/x-pack/plugins/uptime/common/runtime_types/monitor/state.ts +++ b/x-pack/plugins/uptime/common/runtime_types/monitor/state.ts @@ -9,7 +9,7 @@ import * as t from 'io-ts'; export const CheckMonitorType = t.intersection([ t.partial({ name: t.string, - ip: t.union([t.array(t.union([t.string, t.null])), t.string]), + ip: t.union([t.array(t.union([t.string, t.null])), t.string, t.null]), }), t.type({ status: t.string,