muliyul
02/24/2021, 10:28 PMmarzelwidmer
03/01/2021, 9:40 PMAnuj Dutta
03/05/2021, 10:22 AMAkshay Pawar
03/07/2021, 4:35 AMRafał Kuźmiński
03/08/2021, 1:40 PMGopal S Akshintala
03/10/2021, 1:52 PMevanchooly
03/12/2021, 5:24 PMDavid
03/12/2021, 11:07 PMDavid
03/12/2021, 11:08 PMmaven deploy
instead of having to manually kill the process and copying the jar into the folderDavid
03/12/2021, 11:09 PMLuiz Aguiar
03/18/2021, 10:08 PMfun <T : Any> myFunction(foo: Foo, bar: Bar, response: KClass<T>): MyResponse<T> { do magic }
how can it be mocked to control the returned object?
whenever(mockedClass.myFunction(any(), any(), any<SomeType>())).thenReturn(MyResponse<SomeType>())
I tried few variations with mockito/mokk but the argument matcher never works.Manuel Pérez Alcolea
03/20/2021, 4:02 PMSlackbot
03/21/2021, 1:31 AMByron Katz
03/25/2021, 7:43 PMscott
03/26/2021, 10:01 PMPavel Petkevich
03/30/2021, 10:33 PMGuilherme Delgado
03/31/2021, 12:20 AMprivate fun createHttpClient(enableNetworkLogs: Boolean) = HttpClient {
install(JsonFeature) {
serializer = KotlinxSerializer(kotlinx.serialization.json.Json {
isLenient = true
ignoreUnknownKeys = true
serializersModule = SerializersModule { contextual(MyCustomSerializer) }
})
}
if (enableNetworkLogs) {
install(Logging) {
logger = Logger.DEFAULT
level = LogLevel.ALL
}
}
}
Applied only to a specific request (without creating a different client)
suspend fun fetchData(): List<Something> = client.<configure specific serializersModule for this request>.get(...)
?
Thanks for your time!
ps: this is my ktor configuration for KMM commonModule. Maybe the question is in the wrong channel 😕 sorry in advanceGuilherme Delgado
03/31/2021, 10:32 AMJustin Tullgren
03/31/2021, 10:46 PMSlackbot
04/03/2021, 8:04 PMTarun Chawla
04/22/2021, 4:31 PMinstall(CORS) {
method(HttpMethod.Options)
method(HttpMethod.Get)
method(<http://HttpMethod.Post|HttpMethod.Post>)
method(HttpMethod.Put)
method(HttpMethod.Delete)
method(HttpMethod.Patch)
header(HttpHeaders.AccessControlAllowHeaders)
header(HttpHeaders.ContentType)
header(HttpHeaders.Authorization)
header(HttpHeaders.AccessControlAllowOrigin)
allowCredentials = true
anyHost()
}
I have setup CORS but I still get this error on firefox browser, can someone please help?
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
Justin Tullgren
04/22/2021, 6:10 PMorg.litote.kmongo:kmongo-coroutine-serialization
library but I cant see how to set the serializer module for a polymorphic typeHasan Hosgel (alosdev)
04/27/2021, 12:41 PMSerialName
doesn’t get recognized and setting the name with ApiModelProperty
has no effect.
has any one some hints how to solve this problem?Joram Visser
04/30/2021, 7:57 AMHusam
05/02/2021, 11:00 PMRoukanken
05/03/2021, 2:06 PMtimmy
05/05/2021, 7:05 AMJoão Rodrigues
05/06/2021, 8:44 AMck
05/06/2021, 8:52 PMSlackbot
05/07/2021, 7:36 AMSlackbot
05/07/2021, 7:36 AMnfrankel
05/07/2021, 8:16 AM