smithy-lang / smithy-typescript

Smithy code generators for TypeScript. (in development)
Apache License 2.0
207 stars 75 forks source link

Force generator to generate models for internal trait #1294

Open ayush987goyal opened 1 month ago

ayush987goyal commented 1 month ago

Is there a way to force the smithy-ts generator to generate models for all the structures annotated with @internal trait?

liushang1997 commented 1 month ago

+1

kstich commented 1 month ago

This code generator isn't restricting usage of @internal in models by changing the generated code for anything significant I can see. Can you share any of the build configuration (smithy-build.json, any other related build config) you're using to run the generator? It sounds like you're running a projection that transforms the model to remove some internal components.

liushang1997 commented 1 month ago

This code generator isn't restricting usage of @internal in models by changing the generated code for anything significant I can see. Can you share any of the build configuration (smithy-build.json, any other related build config) you're using to run the generator? It sounds like you're running a projection that transforms the model to remove some internal components.

I managed to generate internal shapes by deleting below block in my smithy-build.json file:

"transforms": [{"name": "apply", "args": ["core-aws-sdk-external"]}]