Comments (2)
Hey thanks for the feedback.
It would help to understand your use case a bit better. Are you asking for support from the AWS SDK for Kotlin for this or are you using (or planning to) generate code using smithy-kotlin
for your own models?
Smithy will eventually support Java as a first class code generator. The recommendation right now for people in Kotlin that need to bridge the two would be to wrap or write extension functions around the coroutines code the same way you would for any other coroutine code to make it callable from Java.
I think we could certainly explore this as a plugin setting for people that want to generate the extra code but we don't currently have plans to implement this. Gathering use cases and how people would want this to look and why they want it would be a good first step.
from smithy-kotlin.
Hi there,
I was experimenting with Smithy as a tool for codegen similar to thrift or grpc but targeting existing HTTP services communicating over JSON. The main advantage that smithy has is I'd say ease of customizability - for example to extend codegen for Kotlin to adjust it for my use-case I could simply implement KotlinIntegration
interface and that would be it.
In my specific case, I'd like to generate clients with some customizations (for example: attaching headers for tracing) but I'd like those clients to be usable from both Kotlin and Java.
Kotlin clients look great (thanks for your work!) but I wouldn't want to write bridge code by hand in a java application to consume a kotlin client - hence my request to generate that code.
I'd be okay with generating different clients for Java and for Kotlin but as you mentioned smithy project doesn't yet support Java.
from smithy-kotlin.
Related Issues (20)
- OkHttp: Retry on SocketException: Broken pipe HOT 7
- Invalid signatures due to URL encoding changes (0.36.1-beta vs 1.0.0+) HOT 7
- Generic service-stub codegen
- Url.parse(url: String) strips @ in scenarios it shouldn't
- Signing issue when pre-computed hash provided in x-amz-content-sha256
- Union members targeting smithy.api#Unit generates extraneous structures HOT 1
- Document/disable OkHttp's automatic response decompression HOT 2
- Map shapes targeting enum keys are generated as kotlin.String HOT 1
- IllegalStateException "Unbalanced enter/exit" in okio AsyncTimeout
- Smithy is not compatible with OkHttp 5.0.0-alpha.14 HOT 1
- Incorrect "http.nonProxyHosts" property name HOT 1
- Telemetry provider implementation for micrometer HOT 4
- https.nonProxyHosts does not handle * wildcard HOT 1
- Check for empty proxy hosts HOT 2
- XML protocols don't generate list deserializers properly for old-style enum elements
- Deserializer for union member `Map<*, List<Enum>>` generates incorrectly
- Unions with member names matching auto-imported Kotlin symbols fail to codegen correctly
- Idempotency tokens should be ignored when applied to a nested shape
- Codegen doesn't properly handle unions with a member that has the same name as the union
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smithy-kotlin.