File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ are as follows:
22
22
mavenCentral()
23
23
}
24
24
dependencies {
25
- " classpath" (" software.amazon.smithy:smithy-cli:[1.19 .0,1.20 .0[" )
25
+ " classpath" (" software.amazon.smithy:smithy-cli:[1.25 .0,1.26 .0[" )
26
26
}
27
27
}
28
28
@@ -36,8 +36,8 @@ are as follows:
36
36
}
37
37
38
38
dependencies {
39
- implementation(" software.amazon.smithy:smithy-model:[1.19 .0,1.20 .0[" )
40
- implementation(" software.amazon.smithy.typescript:smithy-typescript-codegen:0.11 .0" )
39
+ implementation(" software.amazon.smithy:smithy-model:[1.25 .0,1.26 .0[" )
40
+ implementation(" software.amazon.smithy.typescript:smithy-typescript-codegen:0.12 .0" )
41
41
}
42
42
```
43
43
@@ -70,26 +70,22 @@ are as follows:
70
70
5 . Create a file in the ` model ` directory named ` main.smithy ` with the following contents:
71
71
72
72
```
73
+ $version: "2"
74
+
73
75
namespace smithy.example
74
76
75
77
service ExampleService {
76
- version: "2022-01-01",
78
+ version: "2022-01-01"
77
79
operations: [Echo]
78
80
}
79
81
80
82
operation Echo {
81
- input: EchoInput,
82
- output: EchoOutput,
83
- }
84
-
85
- @input
86
- structure EchoInput {
87
- message: String,
88
- }
89
-
90
- @output
91
- structure EchoOutput {
92
- message: String
83
+ input := {
84
+ message: String
85
+ }
86
+ output := {
87
+ message: String
88
+ }
93
89
}
94
90
```
95
91
You can’t perform that action at this time.
0 commit comments