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": {