From 9d63379cc61ecc494cbf0db92aa0ac4215327955 Mon Sep 17 00:00:00 2001 From: Raphael Fakhri <153192858+RaphaelFakhri@users.noreply.github.com> Date: Wed, 4 Nov 2026 08:07:32 +0000 Subject: [PATCH] specs-go: fix JSON tag for VM hwConfig The spec (config-vm.md) and the JSON schema (schema/config-vm.json) name the VM hardware configuration property "hwConfig", but the Go struct tag used "hwconfig". Marshaling a VM config with the Go types therefore produced a key that does not match the spec, and is ignored by case-sensitive parsers. Decoding with encoding/json is case-insensitive, so existing documents using "hwconfig" still decode. Signed-off-by: Raphael Fakhri <153192858+RaphaelFakhri@users.noreply.github.com> --- specs-go/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs-go/config.go b/specs-go/config.go index 711eb9e17..45f1b9b94 100644 --- a/specs-go/config.go +++ b/specs-go/config.go @@ -725,7 +725,7 @@ type VM struct { // Image specifies guest image related configuration for virtual-machine-based containers. Image VMImage `json:"image,omitempty"` // Hardware configuration that should be passed to the VM. - HwConfig *HWConfig `json:"hwconfig,omitempty"` + HwConfig *HWConfig `json:"hwConfig,omitempty"` } // VMHypervisor contains information about the hypervisor to use for a virtual machine.