Skip to content

Commit 62b6cc8

Browse files
authored
Update versions in README example (#601)
1 parent 50867ab commit 62b6cc8

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

README.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ are as follows:
2222
mavenCentral()
2323
}
2424
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[")
2626
}
2727
}
2828

@@ -36,8 +36,8 @@ are as follows:
3636
}
3737

3838
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")
4141
}
4242
```
4343

@@ -70,26 +70,22 @@ are as follows:
7070
5. Create a file in the `model` directory named `main.smithy` with the following contents:
7171

7272
```
73+
$version: "2"
74+
7375
namespace smithy.example
7476
7577
service ExampleService {
76-
version: "2022-01-01",
78+
version: "2022-01-01"
7779
operations: [Echo]
7880
}
7981
8082
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+
}
9389
}
9490
```
9591

0 commit comments

Comments
 (0)