Skip to content

Commit f8d40e3

Browse files
authored
Fix SDK's API model sync utility to ignore models without sdkId (#1459)
Updates the SDK's API model sync utility to ignore modeled service shapes that do not have a `sdkId` or `aws.api#service` trait.
1 parent 973e5f5 commit f8d40e3

File tree

1 file changed

+2
-2
lines changed
  • internal/repotools/cmd/syncAPIModels

1 file changed

+2
-2
lines changed

internal/repotools/cmd/syncAPIModels/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ func findSmithyModels(modelPath string) (map[string]SourceModel, error) {
115115
name, path)
116116
}
117117
if shape.Traits.Service == nil {
118-
return fmt.Errorf("smithy service doesn't have service trait %s, %s",
119-
name, path)
118+
// Ignore services that don't have an SDK id.
119+
continue
120120
}
121121
if len(shape.Traits.Service.SDKID) == 0 {
122122
return fmt.Errorf("smithy service doesn't have sdkId value %s, %s",

0 commit comments

Comments
 (0)