Skip to content

Commit 65fac2b

Browse files
committed
Fix camelCasing on idType to align with other Windows spec conventions
Signed-off-by: Craig Wilhite <[email protected]>
1 parent da8adc9 commit 65fac2b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

config-windows.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The Windows container specification uses APIs provided by the Windows Host Compu
2626
Each entry has the following structure:
2727

2828
* **`id`** *(string, REQUIRED)* - specifies the device which the runtime MUST make available in the container.
29-
* **`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].
29+
* **`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].
3030

3131
[interfaceGUID]: https://docs.microsoft.com/en-us/windows-hardware/drivers/install/overview-of-device-interface-classes
3232

@@ -37,11 +37,11 @@ Each entry has the following structure:
3737
"devices": [
3838
{
3939
"id": "24E552D7-6523-47F7-A647-D3465BF1F5CA",
40-
"id_type": "class"
40+
"idType": "class"
4141
},
4242
{
4343
"id": "5175d334-c371-4806-b3ba-71fd53c9258d",
44-
"id_type": "class"
44+
"idType": "class"
4545
}
4646
]
4747
}

schema/defs-windows.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"id": {
77
"type": "string"
88
},
9-
"id_type": {
9+
"idType": {
1010
"type": "string",
1111
"enum": [
1212
"class"
@@ -15,7 +15,7 @@
1515
},
1616
"required": [
1717
"id",
18-
"id_type"
18+
"idType"
1919
]
2020
}
2121
}

specs-go/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ type WindowsDevice struct {
454454
// Device identifier: interface class GUID, etc.
455455
ID string `json:"id"`
456456
// Device identifier type: "class", etc.
457-
IDType string `json:"id_type"`
457+
IDType string `json:"idType"`
458458
}
459459

460460
// WindowsResources has container runtime resource constraints for containers running on Windows.

0 commit comments

Comments
 (0)