diff --git a/smithy-typescript-codegen-test/model/main.smithy b/smithy-typescript-codegen-test/model/main.smithy index 3709d45609f..6caca7d44f5 100644 --- a/smithy-typescript-codegen-test/model/main.smithy +++ b/smithy-typescript-codegen-test/model/main.smithy @@ -12,7 +12,7 @@ use smithy.waiters#waitable // feat(experimentalIdentityAndAuth): uncomment operations as individual // auth scheme support is implemented // @httpApiKeyAuth(name: "X-Api-Key", in: "header") -// @httpBearerAuth +@httpBearerAuth // @sigv4(name: "weather") // @auth([sigv4]) @paginated(inputToken: "nextToken", outputToken: "nextToken", pageSize: "pageSize") @@ -27,11 +27,12 @@ service Weather { // auth scheme support is implemented // experimentalIdentityAndAuth // OnlyHttpApiKeyAuth - // OnlyHttpBearerAuth + OnlyHttpBearerAuth // OnlyHttpApiKeyAndBearerAuth // OnlyHttpApiKeyAndBearerAuthReversed // OnlyHttpApiKeyAuthOptional - // SameAsService + OnlyHttpBearerAuthOptional + SameAsService ] } @@ -56,6 +57,11 @@ operation OnlyHttpApiKeyAndBearerAuthReversed {} @optionalAuth operation OnlyHttpApiKeyAuthOptional {} +@http(method: "GET", uri: "/OnlyHttpBearerAuthOptional") +@auth([httpBearerAuth]) +@optionalAuth +operation OnlyHttpBearerAuthOptional {} + @http(method: "GET", uri: "/SameAsService") operation SameAsService {}