From e69ebe8103c918fa403d3a5f0a676753eca3d87d Mon Sep 17 00:00:00 2001 From: gabriel-farache Date: Wed, 18 Dec 2024 14:55:41 +0100 Subject: [PATCH] Add pattern validation for update vm Signed-off-by: gabriel-farache --- .../schemas/modify-vm-resources__main-schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflows/modify-vm-resources/schemas/modify-vm-resources__main-schema.json b/workflows/modify-vm-resources/schemas/modify-vm-resources__main-schema.json index 401db39c..8ce4e2ee 100644 --- a/workflows/modify-vm-resources/schemas/modify-vm-resources__main-schema.json +++ b/workflows/modify-vm-resources/schemas/modify-vm-resources__main-schema.json @@ -26,7 +26,8 @@ "title": "Memory", "description": "The new guest memory of the VM", "type": "string", - "examples": ["2Gi"] + "examples": ["2Gi"], + "pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" }, "vm_new_cpu_cores": { "title": "CPU Cores",