From ae4d27079b40e93a7b677063aff2ef0a3cfc0ba1 Mon Sep 17 00:00:00 2001 From: Onn Date: Wed, 3 Dec 2025 09:45:08 +0700 Subject: [PATCH] Make Subsystem ID optional --- Scripts/report_validator.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Scripts/report_validator.py b/Scripts/report_validator.py index c3f44f3..7fc602f 100644 --- a/Scripts/report_validator.py +++ b/Scripts/report_validator.py @@ -72,7 +72,7 @@ class ReportValidator: "Codename": {"type": str}, "Device ID": {"type": str, "pattern": self.PATTERNS["device_id"]}, "Device Type": {"type": str, "pattern": self.PATTERNS["gpu_device_type"]}, - "Subsystem ID": {"type": str, "pattern": self.PATTERNS["hex_id"]}, + "Subsystem ID": {"type": str, "required": False, "pattern": self.PATTERNS["hex_id"]}, "PCI Path": {"type": str, "required": False, "pattern": self.PATTERNS["pci_path"]}, "ACPI Path": {"type": str, "required": False, "pattern": self.PATTERNS["acpi_path"]}, "Resizable BAR": {"type": str, "required": False, "pattern": self.PATTERNS["enabled_disabled"]} @@ -99,7 +99,7 @@ class ReportValidator: "schema": { "Bus Type": {"type": str, "pattern": self.PATTERNS["bus_type"]}, "Device ID": {"type": str, "pattern": self.PATTERNS["device_id"]}, - "Subsystem ID": {"type": str, "pattern": self.PATTERNS["hex_id"]}, + "Subsystem ID": {"type": str, "required": False, "pattern": self.PATTERNS["hex_id"]}, "PCI Path": {"type": str, "required": False, "pattern": self.PATTERNS["pci_path"]}, "ACPI Path": {"type": str, "required": False, "pattern": self.PATTERNS["acpi_path"]} } @@ -127,7 +127,7 @@ class ReportValidator: "schema": { "Bus Type": {"type": str, "pattern": self.PATTERNS["bus_type"]}, "Device ID": {"type": str, "pattern": self.PATTERNS["device_id"]}, - "Subsystem ID": {"type": str, "pattern": self.PATTERNS["hex_id"]}, + "Subsystem ID": {"type": str, "required": False, "pattern": self.PATTERNS["hex_id"]}, "PCI Path": {"type": str, "required": False, "pattern": self.PATTERNS["pci_path"]}, "ACPI Path": {"type": str, "required": False, "pattern": self.PATTERNS["acpi_path"]} } @@ -154,7 +154,7 @@ class ReportValidator: "schema": { "Bus Type": {"type": str, "pattern": self.PATTERNS["bus_type"]}, "Device ID": {"type": str, "pattern": self.PATTERNS["device_id"]}, - "Subsystem ID": {"type": str, "pattern": self.PATTERNS["hex_id"]}, + "Subsystem ID": {"type": str, "required": False, "pattern": self.PATTERNS["hex_id"]}, "PCI Path": {"type": str, "required": False, "pattern": self.PATTERNS["pci_path"]}, "ACPI Path": {"type": str, "required": False, "pattern": self.PATTERNS["acpi_path"]}, "Disk Drives": {"type": list, "required": False, "item_rule": {"type": str}} @@ -192,7 +192,7 @@ class ReportValidator: "schema": { "Bus Type": {"type": str, "pattern": self.PATTERNS["bus_type"]}, "Device ID": {"type": str, "pattern": self.PATTERNS["device_id"]}, - "Subsystem ID": {"type": str, "pattern": self.PATTERNS["hex_id"]}, + "Subsystem ID": {"type": str, "required": False, "pattern": self.PATTERNS["hex_id"]}, "PCI Path": {"type": str, "required": False, "pattern": self.PATTERNS["pci_path"]}, "ACPI Path": {"type": str, "required": False, "pattern": self.PATTERNS["acpi_path"]} }