Skip to content

Commit

Permalink
fix: JsonClassDescriminator not being noticed
Browse files Browse the repository at this point in the history
  • Loading branch information
Vehmloewff committed Oct 27, 2024
1 parent c8ac47d commit b5ab34c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/example/objectionapp/Schema.kt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private fun getSealedSchema(rootDescriptor: SerialDescriptor): ItemSchema.EnumSc
var discriminatorKey: String? = null
var contentKey: String? = null

for (annotation in descriptor.annotations) {
for (annotation in rootDescriptor.annotations) {
if (annotation is JsonClassDiscriminator) {
discriminatorKey = annotation.discriminator
}
Expand Down

0 comments on commit b5ab34c

Please sign in to comment.