From 10c8fe26fbe46b3abd5ee66d7ecbbabae4c95b46 Mon Sep 17 00:00:00 2001 From: Luis Madrigal <599908+Madrigal@users.noreply.github.com> Date: Fri, 11 Oct 2024 11:29:11 -0400 Subject: [PATCH] Remove requirement of internal tool to check for version on AWS models (#2832) --- internal/repotools/cmd/syncAPIModels/main.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/repotools/cmd/syncAPIModels/main.go b/internal/repotools/cmd/syncAPIModels/main.go index 6644c866f5a..6b8e4ff2ff6 100644 --- a/internal/repotools/cmd/syncAPIModels/main.go +++ b/internal/repotools/cmd/syncAPIModels/main.go @@ -67,7 +67,6 @@ func copyModelFile(model SourceModel) error { // SourceModel provides the type for a model that should be copied. type SourceModel struct { SDKID string - Version string SrcFilepath string DstFilename string } @@ -110,10 +109,6 @@ func findSmithyModels(modelPath string) (map[string]SourceModel, error) { if shape.Type != "service" { continue } - if len(shape.Version) == 0 { - return fmt.Errorf("smithy service doesn't have version %s %s", - name, path) - } if shape.Traits.Service == nil { // Ignore services that don't have an SDK id. continue @@ -133,7 +128,6 @@ func findSmithyModels(modelPath string) (map[string]SourceModel, error) { // TODO what about two services in same model file? models[sdkID] = SourceModel{ SDKID: sdkID, - Version: shape.Version, SrcFilepath: path, DstFilename: sdkID + ".json", }