Skip to content

Commit a982224

Browse files
committed
specs-go, schema: nuke KindShort and NameShort.
Remove unused Spec.KindShort and Device.NameShort. Signed-off-by: Krisztian Litkey <[email protected]>
1 parent 1eb6745 commit a982224

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

schema/schema.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
"description": "The kind of the device usually of the form 'vendor.com/device'",
1212
"type": "string"
1313
},
14-
"kindShort": {
15-
"description": "List of shorthand terms which refers to kind. That can be used on the cli, e.g: 'device' instead of 'vendor.com/device'.",
16-
"$ref": "defs.json#/definitions/ArrayOfStrings"
17-
},
1814
"containerRuntime": {
1915
"description": "A list of container runtimes this spec applies to",
2016
"$ref": "defs.json#/definitions/ArrayOfStrings"
@@ -28,10 +24,6 @@
2824
"description": "The name of the device",
2925
"type": "string"
3026
},
31-
"nameShort": {
32-
"description": "A list of aliases which refers to the device",
33-
"$ref": "defs.json#/definitions/ArrayOfStrings"
34-
},
3527
"containerEdits": {
3628
"$ref": "defs.json#/definitions/containerEdits"
3729
}

specs-go/config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import "os"
66
type Spec struct {
77
Version string `json:"cdiVersion"`
88
Kind string `json:"kind"`
9-
KindShort []string `json:"kindShort,omitempty"`
109
ContainerRuntime []string `json:"containerRuntime,omitempty"`
1110

1211
Devices []Device `json:"devices"`
@@ -16,7 +15,6 @@ type Spec struct {
1615
// Device is a "Device" a container runtime can add to a container
1716
type Device struct {
1817
Name string `json:"name"`
19-
NameShort []string `json:"nameShort"`
2018
ContainerEdits ContainerEdits `json:"containerEdits"`
2119
}
2220

0 commit comments

Comments
 (0)