diff --git a/smithy-aws-protocol-tests/model/awsJson1_0WithQueryCompatible/errors.smithy b/smithy-aws-protocol-tests/model/awsJson1_0WithQueryCompatible/errors.smithy deleted file mode 100644 index ccc4b708718..00000000000 --- a/smithy-aws-protocol-tests/model/awsJson1_0WithQueryCompatible/errors.smithy +++ /dev/null @@ -1,53 +0,0 @@ -$version: "2.0" - -namespace aws.protocoltests.json10 - -use aws.protocols#awsJson1_0 -use aws.protocols#awsQueryError -use smithy.test#httpRequestTests -use smithy.test#httpResponseTests - -@idempotent -operation GreetingWithError { - input: GreetingWithErrorInput, - output: GreetingWithErrorOutput, - errors: [InvalidGreetingError] -} - -@input -structure GreetingWithErrorInput { - greeting: String, -} - -@output -structure GreetingWithErrorOutput { - greeting: String, -} - -@awsQueryError( - code: "CustomGreetingErrorCode", - httpResponseCode: 402 -) -@error("client") -structure InvalidGreetingError { - Message: String, -} - -apply InvalidGreeting @httpResponseTests([ - { - id: "Json10WithQueryCompatibleGreetingError", - documentation: "@awsQueryCompatible trait is applied to service", - protocol: awsJson1_0, - params: { - Message: "Hi" - }, - code: 402, - headers: { - "Content-Type": "application/x-amz-json-1.0", - "x-amzn-query-error": "CustomGreetingErrorCode;Sender" - }, - bodyMediaType: "application/json", - body: "{\"__type\": \"InvalidGreetingError\",\"Message\": \"Hi\"}", - appliesTo: "client" - }, -]) diff --git a/smithy-aws-protocol-tests/model/awsJson1_0WithQueryCompatible/main.smithy b/smithy-aws-protocol-tests/model/awsJson1_0WithQueryCompatible/main.smithy deleted file mode 100644 index 5ca7d211c30..00000000000 --- a/smithy-aws-protocol-tests/model/awsJson1_0WithQueryCompatible/main.smithy +++ /dev/null @@ -1,18 +0,0 @@ -$version: "2.0" - -namespace aws.protocoltests.json10 - -use aws.api#service -use aws.protocols#awsJson1_0 -use aws.protocols#awsQueryCompatible -use smithy.test#httpRequestTests -use smithy.test#httpResponseTests - - -@service(sdkId: "JSON RPC 10 with Query Compatible Trait") -@awsQueryCompatible -@awsJson1_0 -service JsonRpc10WithQueryCompatible { - version: "2020-07-14", - operations: [GreetingWithErrors] -}