From 4c5a8d85a2d92537bc24e84350c2706666b68205 Mon Sep 17 00:00:00 2001 From: Hunter Mellema Date: Wed, 13 Mar 2024 09:10:45 -0600 Subject: [PATCH] Resolve smithy warnings to reduce build noise --- .../HttpApiKeyAuthService.smithy | 3 +++ .../HttpBearerAuthService.smithy | 3 +++ .../model/weather/main.smithy | 20 +++++++++++++++++++ .../model/weather/more-nesting.smithy | 2 +- .../model/weather/nested.smithy | 2 +- 5 files changed, 28 insertions(+), 2 deletions(-) diff --git a/smithy-typescript-codegen-test/model/identity-and-auth/httpApiKeyAuth/HttpApiKeyAuthService.smithy b/smithy-typescript-codegen-test/model/identity-and-auth/httpApiKeyAuth/HttpApiKeyAuthService.smithy index 6ff848e449f..87580067768 100644 --- a/smithy-typescript-codegen-test/model/identity-and-auth/httpApiKeyAuth/HttpApiKeyAuthService.smithy +++ b/smithy-typescript-codegen-test/model/identity-and-auth/httpApiKeyAuth/HttpApiKeyAuthService.smithy @@ -14,14 +14,17 @@ service HttpApiKeyAuthService { ] } +@readonly @http(method: "GET", uri: "/OnlyHttpApiKeyAuth") @auth([httpApiKeyAuth]) operation OnlyHttpApiKeyAuth {} +@readonly @http(method: "GET", uri: "/OnlyHttpApiKeyAuthOptional") @auth([httpApiKeyAuth]) @optionalAuth operation OnlyHttpApiKeyAuthOptional {} +@readonly @http(method: "GET", uri: "/SameAsService") operation SameAsService {} diff --git a/smithy-typescript-codegen-test/model/identity-and-auth/httpBearerAuth/HttpBearerAuthService.smithy b/smithy-typescript-codegen-test/model/identity-and-auth/httpBearerAuth/HttpBearerAuthService.smithy index c7c4949b8dc..d08b26cc1c4 100644 --- a/smithy-typescript-codegen-test/model/identity-and-auth/httpBearerAuth/HttpBearerAuthService.smithy +++ b/smithy-typescript-codegen-test/model/identity-and-auth/httpBearerAuth/HttpBearerAuthService.smithy @@ -14,14 +14,17 @@ service HttpBearerAuthService { ] } +@readonly @http(method: "GET", uri: "/OnlyHttpBearerAuth") @auth([httpBearerAuth]) operation OnlyHttpBearerAuth {} +@readonly @http(method: "GET", uri: "/OnlyHttpBearerAuthOptional") @auth([httpBearerAuth]) @optionalAuth operation OnlyHttpBearerAuthOptional {} +@readonly @http(method: "GET", uri: "/SameAsService") operation SameAsService {} diff --git a/smithy-typescript-codegen-test/model/weather/main.smithy b/smithy-typescript-codegen-test/model/weather/main.smithy index 9315ccb6a39..b4084d8aa21 100644 --- a/smithy-typescript-codegen-test/model/weather/main.smithy +++ b/smithy-typescript-codegen-test/model/weather/main.smithy @@ -1,5 +1,14 @@ $version: "2.0" +// Ignore any +metadata suppressions = [ + { + id: "UnstableTrait.smithy" + namespace: "example.weather" + reason: "Unstable traits are expected in test model, do not emit warning on them." + } +] + namespace example.weather use aws.auth#sigv4 @@ -39,50 +48,61 @@ service Weather { ] } +@readonly @http(method: "GET", uri: "/OnlyHttpApiKeyAuth") @auth([httpApiKeyAuth]) operation OnlyHttpApiKeyAuth {} +@readonly @http(method: "GET", uri: "/OnlyHttpBearerAuth") @auth([httpBearerAuth]) operation OnlyHttpBearerAuth {} +@readonly @http(method: "GET", uri: "/OnlySigv4Auth") @auth([sigv4]) operation OnlySigv4Auth {} +@readonly @http(method: "GET", uri: "/OnlyHttpApiKeyAndBearerAuth") @auth([httpApiKeyAuth, httpBearerAuth]) operation OnlyHttpApiKeyAndBearerAuth {} +@readonly @http(method: "GET", uri: "/OnlyHttpApiKeyAndBearerAuthReversed") @auth([httpBearerAuth, httpApiKeyAuth]) operation OnlyHttpApiKeyAndBearerAuthReversed {} +@readonly @http(method: "GET", uri: "/OnlyHttpApiKeyAuthOptional") @auth([httpApiKeyAuth]) @optionalAuth operation OnlyHttpApiKeyAuthOptional {} +@readonly @http(method: "GET", uri: "/OnlyHttpBearerAuthOptional") @auth([httpBearerAuth]) @optionalAuth operation OnlyHttpBearerAuthOptional {} +@readonly @http(method: "GET", uri: "/OnlySigv4AuthOptional") @auth([sigv4]) @optionalAuth operation OnlySigv4AuthOptional {} +@readonly @http(method: "GET", uri: "/OnlyFakeAuth") @auth([fakeAuth]) operation OnlyFakeAuth {} +@readonly @http(method: "GET", uri: "/OnlyFakeAuthOptional") @auth([fakeAuth]) @optionalAuth operation OnlyFakeAuthOptional {} +@readonly @http(method: "GET", uri: "/SameAsService") operation SameAsService {} diff --git a/smithy-typescript-codegen-test/model/weather/more-nesting.smithy b/smithy-typescript-codegen-test/model/weather/more-nesting.smithy index 7fa063c89ce..fd5827d5d31 100644 --- a/smithy-typescript-codegen-test/model/weather/more-nesting.smithy +++ b/smithy-typescript-codegen-test/model/weather/more-nesting.smithy @@ -1,4 +1,4 @@ -$version: "1.0" +$version: "2.0" namespace example.weather.nested.more diff --git a/smithy-typescript-codegen-test/model/weather/nested.smithy b/smithy-typescript-codegen-test/model/weather/nested.smithy index f058c96d7ef..ef9a0398e17 100644 --- a/smithy-typescript-codegen-test/model/weather/nested.smithy +++ b/smithy-typescript-codegen-test/model/weather/nested.smithy @@ -1,4 +1,4 @@ -$version: "1.0" +$version: "2.0" namespace example.weather.nested