From 65fac2bf185a2ac335fd7a119104e0c05bcf6ac6 Mon Sep 17 00:00:00 2001 From: Craig Wilhite Date: Tue, 10 Jul 2018 14:00:50 -0700 Subject: [PATCH] Fix camelCasing on idType to align with other Windows spec conventions Signed-off-by: Craig Wilhite --- config-windows.md | 6 +++--- schema/defs-windows.json | 4 ++-- specs-go/config.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config-windows.md b/config-windows.md index a40662f9c..5e9ea3b1c 100644 --- a/config-windows.md +++ b/config-windows.md @@ -26,7 +26,7 @@ The Windows container specification uses APIs provided by the Windows Host Compu Each entry has the following structure: * **`id`** *(string, REQUIRED)* - specifies the device which the runtime MUST make available in the container. -* **`id_type`** *(string, REQUIRED)* - tells the runtime how to interpret `id`. Today, Windows only supports a value of `class`, which identifies `id` as a [device interface class GUID][interfaceGUID]. +* **`idType`** *(string, REQUIRED)* - tells the runtime how to interpret `id`. Today, Windows only supports a value of `class`, which identifies `id` as a [device interface class GUID][interfaceGUID]. [interfaceGUID]: https://docs.microsoft.com/en-us/windows-hardware/drivers/install/overview-of-device-interface-classes @@ -37,11 +37,11 @@ Each entry has the following structure: "devices": [ { "id": "24E552D7-6523-47F7-A647-D3465BF1F5CA", - "id_type": "class" + "idType": "class" }, { "id": "5175d334-c371-4806-b3ba-71fd53c9258d", - "id_type": "class" + "idType": "class" } ] } diff --git a/schema/defs-windows.json b/schema/defs-windows.json index 7ce00df0c..63e0ac309 100644 --- a/schema/defs-windows.json +++ b/schema/defs-windows.json @@ -6,7 +6,7 @@ "id": { "type": "string" }, - "id_type": { + "idType": { "type": "string", "enum": [ "class" @@ -15,7 +15,7 @@ }, "required": [ "id", - "id_type" + "idType" ] } } diff --git a/specs-go/config.go b/specs-go/config.go index 8de39b923..7781c5361 100644 --- a/specs-go/config.go +++ b/specs-go/config.go @@ -454,7 +454,7 @@ type WindowsDevice struct { // Device identifier: interface class GUID, etc. ID string `json:"id"` // Device identifier type: "class", etc. - IDType string `json:"id_type"` + IDType string `json:"idType"` } // WindowsResources has container runtime resource constraints for containers running on Windows.