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
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"
+ ]
+ }
+ }
+ }
}