File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/service Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,9 @@ This is an example of smithy-build.json.
103
103
``` json
104
104
{
105
105
"version" : " 1.0" ,
106
- "outputDirectory" : " build/generated-src" , // define the output path
106
+ "outputDirectory" : " build/generated-src" ,
107
107
"plugins" : {
108
108
"kotlin-codegen" : {
109
- // change based on smithy model <namespace>#<service shape name>
110
109
"service" : " com.demo#DemoService" ,
111
110
"package" : {
112
111
"name" : " com.demo.server" ,
@@ -121,14 +120,19 @@ This is an example of smithy-build.json.
121
120
]
122
121
},
123
122
"serviceStub" : {
124
- // choose server framework, only ktor is supported now
125
123
"framework" : " ktor"
126
124
}
127
125
}
128
126
}
129
127
}
130
128
```
131
129
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
+
132
136
### Step 5: Define Your Smithy Model in the New Project
133
137
134
138
Create a ` model ` directory and add your ` .smithy ` files.
You can’t perform that action at this time.
0 commit comments