From 6b3fb2b0304754881dd945220c30c14900fb9e61 Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Mon, 4 Nov 2024 14:27:47 +0100 Subject: [PATCH] fix: Validate ipaddress against ipv4 or ipv6 format --- inventory.schema.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/inventory.schema.json b/inventory.schema.json index 9d9bfd9..d914af6 100644 --- a/inventory.schema.json +++ b/inventory.schema.json @@ -2052,8 +2052,17 @@ ] }, "ipaddress": { - "type": "string", - "title": "Virtualmachine ip" + "title": "Virtualmachine ip", + "anyOf": [ + { + "type": "string", + "format": "ipv4" + }, + { + "type": "string", + "format": "ipv6" + } + ] }, "memory": { "type": "integer",