Can you generate ONLY models?
@kstich Heyo, been a little bit and hope things are good!
We are potentially looking to use Smithy for some code generation, but was only interested in generating the models. I swear you used to be able to do this, but from the docs, it isn't clear if you can only generate models anymore and instead will also generate a client.
👋 Things are good, hoping the same for you!
It sounds like you're looking to generate "type"-only code for the shapes in a Smithy model, not a client or service implementation for a defined service shape. While not currently available, we're working to bring this functionality to our code generators in the near future. Are there any particular languages of interest you can share?
Haha good to hear! And yes, things are great over here too. Just been trying to push some new technologies like smithy around :p
But yes, "type"-only is exactly what we are needing. For languages, we do need a handful, but they certainly have different priorities. I would say Java, or any JVM based language, is our number one priority right now.
The languages we are interested in:
- Java
- Rust
- Go
- Python
If this is looking to be a feature soon-ish, then I think we can consider using Smithy. We will just need to prune the client-related stuff.
This is possible in smithy-java, with an example of it available here. A PR with support for this is up in smithy-python as well.
Support in Rust and Go would land in the future.
Fantastic! This will definitely get the ball rolling on our side. Thanks again, @kstich