-
Using `moshi-kotlin:1.15.1` with `KotlinJsonAdapterFactory`:
```
Moshi.Builder().add(KotlinJsonAdapterFactory()).build()
```
I want to serialize the following model:
```
private data class W…
-
I get a NPE when I try a query like the following, where `client` is the configured instance of `RedditClient`:
```
client.searchSubredditsByName(
SubredditSearchQuery.Builder("news")
…
-
Classes that are generated look like this:
```
@Suppress("DEPRECATION", "unused", "ClassName", "REDUNDANT_PROJECTION")
class FooJsonAdapter(
moshi: Moshi
) : JsonAdapter() {
```
where `Parame…
-
commit f9af8bb90a96fdfa6dcf22ef6bb380cd45be55d3
`@com.immutables.moshi.Json.Adapters` annotation
``` xml
org.immutables
value
2.1.0-SNAPSHOT
org.immutables
…
-
I'm trying out the new versions sdk-android:2.0 / sdk-core:3.0. I get the following exception on refreshTrustList:
```
2021-12-10 10:20:31.993 29080-30773/ch.ooqi.ooqicheckin E/CertificateVerifica…
-
I see that this project originally depends on gson:
https://github.com/Commit451/Veyron/blob/5eb587197f51d2dc35fa75d1337578541ffbbc68/veyron/build.gradle#L39
but it also introduces moshi:
htt…
-
I am looking into adopting ApiBuilder and to leverage the generators in client side apps. I mainly deal with Android.
Our Android stack makes use of:
Kotlin
RxJava2
Retrofit2
Moshi
I noticed…
-
> When using reflection on classes from outside your project, optional fields not present on deserialization are expensive. This is because when you are reflecting on classes from other libraries, the…
-
Creating the serialization-side of the adapter throws. Also not great that `IllegalAccessError` is wrapped in `AssertionError`, should probably be `IllegalStateException` or `IllegalArgumentException`…
-
If I have a model defined like so:
```kotlin
data class HasAttributes(
val name: Attribute
)
data class Attribute(
val value: T,
val version: Int,
)
val attributes = HasAttributes(n…