mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 21:07:04 +05:30
all: allow unknown keys in responses
This commit is contained in:
parent
b5c2dc9aaf
commit
6eb3acff78
3 changed files with 12 additions and 3 deletions
|
@ -27,11 +27,12 @@ class LobstersApiTest {
|
|||
private val contentType = "application/json".toMediaType()
|
||||
private val webServer = MockWebServer()
|
||||
private val okHttp = OkHttpClient.Builder().build()
|
||||
private val json = Json { ignoreUnknownKeys = true }
|
||||
private val retrofit =
|
||||
Retrofit.Builder()
|
||||
.client(okHttp)
|
||||
.baseUrl("http://localhost:8080/")
|
||||
.addConverterFactory(Json.asConverterFactory(contentType))
|
||||
.addConverterFactory(json.asConverterFactory(contentType))
|
||||
.build()
|
||||
private val apiClient = retrofit.create<LobstersApi>()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue