From a4d4894ba7156d57de65276ac64610267677e883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D1=81=D0=B0=D0=B5=D0=B2=20=D0=94=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB=D0=B0=20=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B5=D0=B2=D0=B8?= =?UTF-8?q?=D1=87?= Date: Wed, 14 Oct 2026 18:09:12 +0300 Subject: [PATCH] fix: spring doc app 193 test #3385 --- .../api/v31/app193/SpringDocApp193Test.java | 1 - .../test/resources/results/3.1.0/app193.json | 32 +++++++++++-------- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/springdoc-openapi-starter-webmvc-api/src/test/java/test/org/springdoc/api/v31/app193/SpringDocApp193Test.java b/springdoc-openapi-starter-webmvc-api/src/test/java/test/org/springdoc/api/v31/app193/SpringDocApp193Test.java index ab5d38e45d..94f0244951 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/java/test/org/springdoc/api/v31/app193/SpringDocApp193Test.java +++ b/springdoc-openapi-starter-webmvc-api/src/test/java/test/org/springdoc/api/v31/app193/SpringDocApp193Test.java @@ -29,7 +29,6 @@ import test.org.springdoc.api.AbstractCommonTest; import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.TestPropertySource; import org.springframework.test.web.servlet.MvcResult; diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app193.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app193.json index 221943c561..6ba17aa122 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app193.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app193.json @@ -25,11 +25,12 @@ "content": { "*/*": { "schema": { - "oneOf": [ - { - "$ref": "#/components/schemas/Books" + "type": "object", + "properties": { + "test.org.springdoc.api.v31.app193.Knowledge": { + "$ref": "#/components/schemas/Knowledge" } - ] + } } } } @@ -51,14 +52,12 @@ "content": { "*/*": { "schema": { - "oneOf": [ - { - "$ref": "#/components/schemas/Cat" - }, - { - "$ref": "#/components/schemas/Dog" + "type": "object", + "properties": { + "Animal": { + "$ref": "#/components/schemas/Animal" } - ] + } } } } @@ -69,6 +68,15 @@ }, "components": { "schemas": { + "Book": { + "type": "object", + "description": "Represents a Book.", + "properties": { + "title": { + "type": "string" + } + } + }, "Books": { "allOf": [ { @@ -86,11 +94,9 @@ "description": "Represents a list of Books." }, "Knowledge": { - "type": "object", "description": "Represents the knowledge." }, "Animal": { - "type": "object", "description": "Represents an Animal class." }, "Cat": {