From a42210560ff0d0148cb91b3fdf3b37f460b01ff3 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 --- .../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 32019ad2..e964e7f1 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 @@ -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)