You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AWS SDK v3 client follows a pattern of Command/Input/Output. I can generate this type of client when I add this into type_safe_api.TypeSafeApiProject config:
This config generates a client package in api/model/build/smithyprojections/<packageName>/ts-client/typescript-codegen but pdk/projen/nx do not see it, so it requires additional effort to publish this code to npm.
I'd like pdk to generate this code into api/generated similar to generated/runtime/typescript with all required projen configs
Use Case
It would be more consistent with existing AWS SDK to have client generated by smithy typescript generator.
Proposed Solution
No response
Other Information
No response
Acknowledgements
I may be able to implement this feature request
This feature might incur a breaking change
PDK version used
0.22.49
What languages will this feature affect?
No response
Environment details (OS name and version, etc.)
macOS
The text was updated successfully, but these errors were encountered:
Thanks for raising this Cyprian! We'd definitely like to build in better support for Smithy generated libraries (the existing runtimes/libraries etc are all generated from the OpenAPI projection for Smithy).
As you mentioned it is a bit of extra effort, but it is possible to get Smithy generators working and the generated code hooked up with the monorepo. I put together an example of this a little while ago here: https://github.com/cogwirrel/tsapi-smithy-client-example/ - it's pretty old but the same method should still work, essentially:
Add a projection to generate the client as you did above
Create a TypeScriptProject for the Smithy generated TS client, specifying all the dependencies (since the monorepo install happens before build we need the dependencies up front so can't use the smithy generated package.json so easily)
The workaround is a bit cumbersome though and it'd be awesome if Type Safe API could configure everything for you. To take it a step further it would be great if it could generate handler stubs which utilise the Smithy TS-SSDK instead of the Type Safe API handlers if users prefer.
I'm not sure when we'll be able to pick this up but it's certainly something we'd like to incorporate into Type Safe API!
Describe the feature
AWS SDK v3 client follows a pattern of Command/Input/Output. I can generate this type of client when I add this into
type_safe_api.TypeSafeApiProject
config:This config generates a client package in
api/model/build/smithyprojections/<packageName>/ts-client/typescript-codegen
but pdk/projen/nx do not see it, so it requires additional effort to publish this code to npm.I'd like pdk to generate this code into
api/generated
similar togenerated/runtime/typescript
with all required projen configsUse Case
It would be more consistent with existing AWS SDK to have client generated by smithy typescript generator.
Proposed Solution
No response
Other Information
No response
Acknowledgements
PDK version used
0.22.49
What languages will this feature affect?
No response
Environment details (OS name and version, etc.)
macOS
The text was updated successfully, but these errors were encountered: