Skip to content

Commit

Permalink
Fix to meta JsonSchemaBuilder
Browse files Browse the repository at this point in the history
(cherry picked from commit a422105)
  • Loading branch information
bjsvedin committed Oct 19, 2023
1 parent 9c61365 commit 32c5ebe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ class JsonSchemaBuilder(

val ser = serializer.unwrap()
overrides[ser.descriptor.serialName.substringBefore('<')]?.let {
return defining(ser) { it(ser).applyAnnotations(annos) }
return defining(ser) { it(ser) }.applyAnnotations(annos)
}
return when (ser.descriptor.kind) {
PrimitiveKind.BOOLEAN -> JsonSchemaType(type = JsonType3(JsonType2.BOOLEAN)).applyAnnotations(annos)
Expand Down

0 comments on commit 32c5ebe

Please sign in to comment.