diff --git a/imageroot/actions/configure-module/validate-input.json b/imageroot/actions/configure-module/validate-input.json index 74a80ab..2bf4456 100644 --- a/imageroot/actions/configure-module/validate-input.json +++ b/imageroot/actions/configure-module/validate-input.json @@ -82,19 +82,24 @@ "type": "string", "anyOf": [ { + "description": "textarea empty", "type": "string", "maxLength": 0 }, { + "description": "ipv4", "format": "ipv4" }, { + "description": "cidr ipv4", "pattern": "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\/(3[0-2]|[12]?[0-9])$" }, { + "description": "ipv6 and cidr ipv6", "pattern": "^[0-9a-fA-F:]+(/[0-9]+)?$" }, { + "description": "hostname", "pattern": "^[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$" } ]