From 7986e21c63b19a4206172233edf2a17847f16822 Mon Sep 17 00:00:00 2001 From: Vasily Pelikh <2010720+vpelikh@users.noreply.github.com> Date: Fri, 24 Jul 2026 12:03:23 +0300 Subject: [PATCH 1/2] Bump swagger-core dependency to v4.0.1 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 480c12b61..a0ee1347f 100644 --- a/pom.xml +++ b/pom.xml @@ -61,7 +61,7 @@ 3.3.1 0.11.0 1.7.3 - 4.0.0 + 4.0.1 5.32.11 5.1.0 0.13.0 From 10fde34bedc21d36ac9dd6af52b20328b528e8e0 Mon Sep 17 00:00:00 2001 From: Vasily Pelikh <2010720+vpelikh@users.noreply.github.com> Date: Fri, 24 Jul 2026 15:06:21 +0300 Subject: [PATCH 2/2] Fix expected JSON result for app25 Kotlin test swagger-core 4.0.1 now properly resolves @JsonUnwrapped members in Kotlin, generating OuterResponse and NestedObject schemas. Update the expected result to match. --- .../test/resources/results/3.1.0/app25.json | 63 ++++++++++++++++++- 1 file changed, 61 insertions(+), 2 deletions(-) diff --git a/springdoc-openapi-tests/springdoc-openapi-kotlin-webmvc-tests/src/test/resources/results/3.1.0/app25.json b/springdoc-openapi-tests/springdoc-openapi-kotlin-webmvc-tests/src/test/resources/results/3.1.0/app25.json index 6c2900d02..f2443ac98 100644 --- a/springdoc-openapi-tests/springdoc-openapi-kotlin-webmvc-tests/src/test/resources/results/3.1.0/app25.json +++ b/springdoc-openapi-tests/springdoc-openapi-kotlin-webmvc-tests/src/test/resources/results/3.1.0/app25.json @@ -20,11 +20,70 @@ "responses": { "200": { "description": "OK", - "content": {} + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/OuterResponse" + } + } + } } } } } }, - "components": {} + "components": { + "schemas": { + "NestedObject": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ] + }, + "OuterResponse": { + "type": "object", + "properties": { + "contractAddress": { + "type": "string" + }, + "chainType": { + "type": "string", + "enum": [ + "ETH" + ] + }, + "nested": { + "type": "null", + "oneOf": [ + { + "$ref": "#/components/schemas/NestedObject" + }, + { + "type": "null" + } + ] + }, + "success": { + "type": "boolean" + } + }, + "required": [ + "chainType", + "contractAddress", + "success" + ] + } + } + } }