Skip to content

Commit 77403e7

Browse files
author
luigi
committed
read me
1 parent 3ba5e78 commit 77403e7

File tree

1 file changed

+7
-3
lines changed
  • codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/service

1 file changed

+7
-3
lines changed

codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/service/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,9 @@ This is an example of smithy-build.json.
103103
```json
104104
{
105105
"version": "1.0",
106-
"outputDirectory": "build/generated-src", // define the output path
106+
"outputDirectory": "build/generated-src",
107107
"plugins": {
108108
"kotlin-codegen": {
109-
// change based on smithy model <namespace>#<service shape name>
110109
"service": "com.demo#DemoService",
111110
"package": {
112111
"name": "com.demo.server",
@@ -121,14 +120,19 @@ This is an example of smithy-build.json.
121120
]
122121
},
123122
"serviceStub": {
124-
// choose server framework, only ktor is supported now
125123
"framework": "ktor"
126124
}
127125
}
128126
}
129127
}
130128
```
131129

130+
**Notes:**
131+
- The most important fields are:
132+
- **`outputDirectory`** — defines where the generated service code will be placed in your new project.
133+
- **`service`** — must match your Smithy model’s `<namespace>#<service shape name>`.
134+
- **`serviceStub.framework`** — defines the server framework for generated code. Currently only `"ktor"` is supported.
135+
132136
### Step 5: Define Your Smithy Model in the New Project
133137

134138
Create a `model` directory and add your `.smithy` files.

0 commit comments

Comments
 (0)