Skip to content

Commit

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

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

0 comments on commit a422105

Please sign in to comment.