From ce7b765109b91deb08b2511f7154b9fad6997c8c Mon Sep 17 00:00:00 2001 From: Kevin Stich Date: Thu, 24 Oct 2024 08:18:03 -0700 Subject: [PATCH] Lower UnboundTestOperation to WARNING Consumers of this package using the `includeServices` transform may not also be running `removeUnusedShapes`, leaving behind operations that then trip this validation and cause an error. Lowering this to a warning still emits a message but doesn't block consumers until we find a better strategy for running this validation at Smithy-only build time. --- smithy-aws-protocol-tests/model/shared-types.smithy | 1 + smithy-protocol-tests/model/shared-types.smithy | 1 + 2 files changed, 2 insertions(+) diff --git a/smithy-aws-protocol-tests/model/shared-types.smithy b/smithy-aws-protocol-tests/model/shared-types.smithy index e65bcc6541d..b7a9d2f7ba4 100644 --- a/smithy-aws-protocol-tests/model/shared-types.smithy +++ b/smithy-aws-protocol-tests/model/shared-types.smithy @@ -22,6 +22,7 @@ metadata validators = [ { name: "EmitEachSelector" id: "UnboundTestOperation" + severity: "WARNING" message: "This operation in the AWS protocol tests is not bound to a service." namespaces: [ // Overall protocol test suites. diff --git a/smithy-protocol-tests/model/shared-types.smithy b/smithy-protocol-tests/model/shared-types.smithy index ce555f11790..c31c88ae52e 100644 --- a/smithy-protocol-tests/model/shared-types.smithy +++ b/smithy-protocol-tests/model/shared-types.smithy @@ -11,6 +11,7 @@ metadata validators = [ { name: "EmitEachSelector" id: "UnboundTestOperation" + severity: "WARNING" message: "This operation in the Smithy protocol tests is not bound to a service." namespaces: [ // Overall protocol test suites.