Skip to content

Instantly share code, notes, and snippets.

@emattson
Last active August 20, 2024 02:33
Show Gist options
  • Save emattson/ee0b43a8ddd671f739bc1e51e8b014c7 to your computer and use it in GitHub Desktop.
Save emattson/ee0b43a8ddd671f739bc1e51e8b014c7 to your computer and use it in GitHub Desktop.
Basic smithy typescript ssdk generator template
{
"version": "1.0",
"sources": [
"api-model"
],
"maven": {
"dependencies": [
"software.amazon.smithy:smithy-openapi:1.50.0",
"software.amazon.smithy:smithy-aws-traits:1.50.0",
"software.amazon.smithy:smithy-validation-model:1.50.0",
"software.amazon.smithy.typescript:smithy-typescript-codegen:0.21.1",
"software.amazon.smithy.typescript:smithy-aws-typescript-codegen:0.21.1"
]
},
"plugins": {
"typescript-ssdk-codegen": {
"createDefaultReadme": true,
"package": "my-api",
"packageVersion": "1.0.0",
"packageDescription": "My custom api package description",
"packageJson": {
"engines": {
"node": "20.16.0"
}
}
}
},
"outputDirectory": "smithy-build"
}

Smithy SSDK Generator settings

If .smithy files are stored in ./api-model/ this configuration is the latest versions of maven dependencies to generate a working SSDK using smithy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment