From 4fa26f72e6d06ec85eb03d2f2167853a8a667c85 Mon Sep 17 00:00:00 2001 From: Anton Sviridov Date: Fri, 5 Apr 2024 09:22:00 +0100 Subject: [PATCH] Add readonly trait to GET operation to curb Smithy warning --- src/main/g8/src/main/smithy/hello.smithy | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/g8/src/main/smithy/hello.smithy b/src/main/g8/src/main/smithy/hello.smithy index 6872be5..9ad03b1 100644 --- a/src/main/g8/src/main/smithy/hello.smithy +++ b/src/main/g8/src/main/smithy/hello.smithy @@ -10,6 +10,7 @@ service HelloWorldService { operations: [Hello] } +@readonly @http(method: "GET", uri: "/hello/{name}", code: 200) operation Hello { input: Person,