Skip to content

Commit

Permalink
Remove requirement of internal tool to check for version on AWS models (
Browse files Browse the repository at this point in the history
  • Loading branch information
Madrigal authored Oct 11, 2024
1 parent 28d943f commit 10c8fe2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/repotools/cmd/syncAPIModels/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand All @@ -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",
}
Expand Down

0 comments on commit 10c8fe2

Please sign in to comment.