Replies: 1 comment
-
There is no way, no. An adapter for that type could have been registered. You are not required to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to leverage the type system to know whether a kotlin data class is a
@JsonClass
or not?E.g. consider the following:
Is there a type bound I can use on
T
to restrict callingserialize
on classes that have aJsonClass
annotation (or at the very least, have a valid adapter defined)? I'm looking for a design that minimizes runtime errors.Beta Was this translation helpful? Give feedback.
All reactions