Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you generate ONLY models? #2514

Open
xibz opened this issue Feb 10, 2025 · 4 comments
Open

Can you generate ONLY models? #2514

xibz opened this issue Feb 10, 2025 · 4 comments
Labels
feature-request A feature should be added or improved.

Comments

@xibz
Copy link

xibz commented Feb 10, 2025

@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.

@kstich
Copy link
Contributor

kstich commented Feb 12, 2025

👋 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?

@kstich kstich added the feature-request A feature should be added or improved. label Feb 12, 2025
@xibz
Copy link
Author

xibz commented Feb 12, 2025

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:

  1. Java
  2. Rust
  3. Go
  4. 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.

@kstich
Copy link
Contributor

kstich commented Feb 17, 2025

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.

@xibz
Copy link
Author

xibz commented Feb 18, 2025

Fantastic! This will definitely get the ball rolling on our side. Thanks again, @kstich

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

2 participants