You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
It had to be done this way since KTor just didn't support it. Request bodies underwent type erasure.
However this has been fixed in KTor 2.0.0 and so we can now use generics.
Fixing this issue means allowing this to be possible.
In some cases the generic parameter need to be a JSON object and not an array, string, etc.
There isn't an idiomatic way to prevent the user from being naughty here so I'll leave it to the user to behave. This library shouldn't be jumping through hoops to hand hold the user.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Some endpoints like
SendMessage
take aJsonObject
which is less that ideal.matrix-kt/client/src/main/kotlin/io/github/matrixkt/api/SendMessage.kt
Lines 19 to 22 in 6ad4c89
To send messages one has to do this, which is rather verbose and forces one to specify
MatrixJson
which can break some abstractions.It had to be done this way since KTor just didn't support it. Request bodies underwent type erasure.
However this has been fixed in KTor 2.0.0 and so we can now use generics.
Fixing this issue means allowing this to be possible.
In some cases the generic parameter need to be a JSON object and not an array, string, etc.
There isn't an idiomatic way to prevent the user from being naughty here so I'll leave it to the user to behave. This library shouldn't be jumping through hoops to hand hold the user.
The text was updated successfully, but these errors were encountered: