File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
internal/repotools/cmd/syncAPIModels Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ func copyModelFile(model SourceModel) error {
67
67
// SourceModel provides the type for a model that should be copied.
68
68
type SourceModel struct {
69
69
SDKID string
70
- Version string
71
70
SrcFilepath string
72
71
DstFilename string
73
72
}
@@ -110,10 +109,6 @@ func findSmithyModels(modelPath string) (map[string]SourceModel, error) {
110
109
if shape .Type != "service" {
111
110
continue
112
111
}
113
- if len (shape .Version ) == 0 {
114
- return fmt .Errorf ("smithy service doesn't have version %s %s" ,
115
- name , path )
116
- }
117
112
if shape .Traits .Service == nil {
118
113
// Ignore services that don't have an SDK id.
119
114
continue
@@ -133,7 +128,6 @@ func findSmithyModels(modelPath string) (map[string]SourceModel, error) {
133
128
// TODO what about two services in same model file?
134
129
models [sdkID ] = SourceModel {
135
130
SDKID : sdkID ,
136
- Version : shape .Version ,
137
131
SrcFilepath : path ,
138
132
DstFilename : sdkID + ".json" ,
139
133
}
You can’t perform that action at this time.
0 commit comments