Share your Ktor endpoints between client and server spine.opensavvy.dev

breaking(api): Replace AnyEndpoint types from KClass to KType

KotlinX.Serialization allows looking up serializers based on the KType (since it has information on type parameters) but not on the KClass (since it doesn't). Additionally, KType.classifier is the KClass, so no information is lost. Accessing KotlinX.Serialization serializers from an endpoint will be useful, for example for OpenAPI generation.


Author ivcanet.bsky.social
Date Commit Parent d65ecaa8
+33 -24
2 changed files
+33 -24
2 changed files