From 32c5ebe7f6f311dc0e01f9c14815f1980eb563b3 Mon Sep 17 00:00:00 2001 From: Brady Svedin Date: Thu, 19 Oct 2023 10:28:27 -0600 Subject: [PATCH] Fix to meta JsonSchemaBuilder (cherry picked from commit a42210560ff0d0148cb91b3fdf3b37f460b01ff3) --- .../lightningserver/jsonschema/JsonSchemaBuilder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-core/src/main/kotlin/com/lightningkite/lightningserver/jsonschema/JsonSchemaBuilder.kt b/server-core/src/main/kotlin/com/lightningkite/lightningserver/jsonschema/JsonSchemaBuilder.kt index e2937402..4e302c5c 100644 --- a/server-core/src/main/kotlin/com/lightningkite/lightningserver/jsonschema/JsonSchemaBuilder.kt +++ b/server-core/src/main/kotlin/com/lightningkite/lightningserver/jsonschema/JsonSchemaBuilder.kt @@ -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)