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..74b091e42bf 100644 --- a/smithy-typescript-codegen-test/model/weather/main.smithy +++ b/smithy-typescript-codegen-test/model/weather/main.smithy @@ -1,5 +1,13 @@ $version: "2.0" +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 +47,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