From f8d40e3f2986a7e65e515c9c3ae06c07efc7d887 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte <961963+jasdel@users.noreply.github.com> Date: Mon, 18 Oct 2021 16:42:23 -0700 Subject: [PATCH] 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. --- internal/repotools/cmd/syncAPIModels/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/repotools/cmd/syncAPIModels/main.go b/internal/repotools/cmd/syncAPIModels/main.go index 6ecfc2f33a1..c79561e4ca1 100644 --- a/internal/repotools/cmd/syncAPIModels/main.go +++ b/internal/repotools/cmd/syncAPIModels/main.go @@ -115,8 +115,8 @@ func findSmithyModels(modelPath string) (map[string]SourceModel, error) { name, path) } if shape.Traits.Service == nil { - return fmt.Errorf("smithy service doesn't have service trait %s, %s", - name, path) + // Ignore services that don't have an SDK id. + continue } if len(shape.Traits.Service.SDKID) == 0 { return fmt.Errorf("smithy service doesn't have sdkId value %s, %s",