Comments (5)
your suggestion with open class implemented in #52
from moko-network.
@xsveda maybe we should generate interface in addition to implementation? to not override generated implementation, but implement fake implementation. what do you think about it?
example:
interface ProfileApi {
suspend fun getProfile(profileId: Int): Profile
}
class ProfileApiImpl(...): ProfileApi {
override suspend fun getProfile(profileId: Int): Profile
}
from moko-network.
Sure, until they will be generics-free (for better Swift interoperability) I don't see an issue.
On the other hand, there is a completely re-write of KMP client in openapi-generator
itself (OpenAPITools/openapi-generator#7353) coming hopefully soon, that will also solve this.
from moko-network.
thanks for link! i will follow the updates of this PR. later already openapi-generator got multiplatform support, but with kotlin updates it was not updated so we continue using moko-network..maybe in this time multiplatform support will be better
from moko-network.
interfaces idea moved to #53
from moko-network.
Related Issues (20)
- HI
- Allow UserAgent feature to have a dynamic source of its value HOT 1
- TokenFeature.TokenProvider should be a fun interface HOT 2
- Update Network Generator for Ktor 2.0.1 HOT 1
- Add ability for include/exclude tags for generation
- Network Generator Inline Objects Naming
- Is the way to change property type from Int to Long? HOT 1
- Broken iOS 12 support
- Invalid isNetworkConnectionError result on iOS
- Update moko-resources dependency without cinterop-pluralizedString HOT 1
- Update to later Ktor HOT 3
- Add method to Safeable to map null to a particular value
- Add the value being deserialized to Safeable wrapper
- Improper error handling for method with no return type HOT 3
- RefreshTokenPlugin: excecution is locked when updateTokenHandler gets 401 error HOT 1
- Deprecation warnings when upgrading ktor to 2.3.4
- Gradle configuration cache support
- Add handle of Socket Exception in exceptionHandler
- update to moko-resources 0.24.0
- Allow optional generation of companion object models
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 moko-network.