Skip to content

Commit 10c8fe2

Browse files
authored
Remove requirement of internal tool to check for version on AWS models (#2832)
1 parent 28d943f commit 10c8fe2

File tree

1 file changed

+0
-6
lines changed
  • internal/repotools/cmd/syncAPIModels

1 file changed

+0
-6
lines changed

internal/repotools/cmd/syncAPIModels/main.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ func copyModelFile(model SourceModel) error {
6767
// SourceModel provides the type for a model that should be copied.
6868
type SourceModel struct {
6969
SDKID string
70-
Version string
7170
SrcFilepath string
7271
DstFilename string
7372
}
@@ -110,10 +109,6 @@ func findSmithyModels(modelPath string) (map[string]SourceModel, error) {
110109
if shape.Type != "service" {
111110
continue
112111
}
113-
if len(shape.Version) == 0 {
114-
return fmt.Errorf("smithy service doesn't have version %s %s",
115-
name, path)
116-
}
117112
if shape.Traits.Service == nil {
118113
// Ignore services that don't have an SDK id.
119114
continue
@@ -133,7 +128,6 @@ func findSmithyModels(modelPath string) (map[string]SourceModel, error) {
133128
// TODO what about two services in same model file?
134129
models[sdkID] = SourceModel{
135130
SDKID: sdkID,
136-
Version: shape.Version,
137131
SrcFilepath: path,
138132
DstFilename: sdkID + ".json",
139133
}

0 commit comments

Comments
 (0)