diff --git a/etc/vzlogger_generic.schema.json b/etc/vzlogger_generic.schema.json index 73d88e6a..b0fe5fe6 100644 --- a/etc/vzlogger_generic.schema.json +++ b/etc/vzlogger_generic.schema.json @@ -150,21 +150,6 @@ }] }, - "meterhostordev": { - "title": "Choose the connection to your meter.", - "oneOf": [{ - "host": { - "type": "string", - "description": "ip addr of the meter (if not directly connected)" - } - },{ - "device": { - "type": "string", - "description": "device the meter is connected to. E.g. /dev/ttyUSB0" - } - } - ] - }, "meterS0": { "title": "S0 based meter", @@ -237,7 +222,13 @@ "type": "string", "enum": ["d0"] }, - "$ref": "#/definitions/meterhostordev", + "device": { + "type": "string", + "description": "device the meter is connected to. E.g. /dev/ttyUSB0" + }, + "host": { + "type": "string", + "description": "ip addr of the meter (if not directly connected)" }, "dump_file": { "type": "string", @@ -300,7 +291,13 @@ "type": "string", "enum": ["sml"] }, - "$ref": "#/definitions/meterhostordev", + "host": { + "type": "string", + "description": "ip addr of the meter (if not directly connected)" + }, + "device": { + "type": "string", + "description": "device the meter is connected to. E.g. /dev/ttyUSB0" }, "pullseq": { "type": "string",