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
Hi I am Currently trying to switch From Gson To Moshi But I am Facing Issues like Required value 'y' missing at $
and It's Not a Support Unit type in Kotlin.
Here is My Code Example : {"Key":"value"} This is my Request to My API
And {"key":"value","key":"value"} This is My Response
And My Data class like:
@JsonClass(generateAdapter = true)
data class ApiResponse( @JSON(name = "x")
val x: String, @JSON(name = "y")
val y: T, @JSON(name = "z")
val z: z, @JSON(name = "a")
val a: String, @JSON(name = "b")
val b: String?, @JSON(name = "c")
val c: List?,
)
This discussion was converted from issue #1590 on November 29, 2022 14:09.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi I am Currently trying to switch From Gson To Moshi But I am Facing Issues like Required value 'y' missing at $
and It's Not a Support Unit type in Kotlin.
Here is My Code Example :
{"Key":"value"} This is my Request to My API
And
{"key":"value","key":"value"} This is My Response
And My Data class like:
@JsonClass(generateAdapter = true)
data class ApiResponse(
@JSON(name = "x")
val x: String,
@JSON(name = "y")
val y: T,
@JSON(name = "z")
val z: z,
@JSON(name = "a")
val a: String,
@JSON(name = "b")
val b: String?,
@JSON(name = "c")
val c: List?,
)
Beta Was this translation helpful? Give feedback.
All reactions