From adce10c6ebdd09936ff0f1fe3db12ec480794040 Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Mon, 4 Nov 2024 18:12:13 +0100 Subject: [PATCH] feat: Add ipaddress and operatingsystem fields to virtualmachine (#146) * feat: Add ipaddress and operatingsystem fields to virtualmachine * fix: Validate ipaddress against ipv4 or ipv6 format --- inventory.schema.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/inventory.schema.json b/inventory.schema.json index 9748ee5..d914af6 100644 --- a/inventory.schema.json +++ b/inventory.schema.json @@ -2051,6 +2051,19 @@ "redash/redash" ] }, + "ipaddress": { + "title": "Virtualmachine ip", + "anyOf": [ + { + "type": "string", + "format": "ipv4" + }, + { + "type": "string", + "format": "ipv6" + } + ] + }, "memory": { "type": "integer", "title": "Memory size in MB", @@ -2064,6 +2077,9 @@ "centos7.0" ] }, + "operatingsystem": { + "$ref": "#/properties/content/properties/operatingsystem" + }, "status": { "type": "string", "examples": [