Skip to content

Commit 479fbb7

Browse files
committed
"application/json; charset=UTF-8" Skipped in Generated OpenAPI JSON, Fixes #2596
1 parent 47abab1 commit 479fbb7

File tree

1 file changed

+76
-0
lines changed
  • springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1

1 file changed

+76
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"openapi": "3.0.1",
3+
"info": {
4+
"title": "OpenAPI definition",
5+
"version": "v0"
6+
},
7+
"servers": [
8+
{
9+
"url": "http://localhost",
10+
"description": "Generated server url"
11+
}
12+
],
13+
"paths": {
14+
"/api/testpost": {
15+
"post": {
16+
"tags": [
17+
"hello-controller"
18+
],
19+
"operationId": "testpost",
20+
"requestBody": {
21+
"content": {
22+
"application/json": {
23+
"schema": {
24+
"$ref": "#/components/schemas/TestObject"
25+
}
26+
},
27+
"application/json;charset=UTF-8": {
28+
"schema": {
29+
"$ref": "#/components/schemas/TestObject"
30+
}
31+
},
32+
"application/json; charset=UTF-8": {
33+
"schema": {
34+
"$ref": "#/components/schemas/TestObject"
35+
}
36+
}
37+
},
38+
"required": true
39+
},
40+
"responses": {
41+
"200": {
42+
"description": "OK",
43+
"content": {
44+
"application/xml": {
45+
"schema": {
46+
"$ref": "#/components/schemas/TestObject"
47+
}
48+
},
49+
"application/json": {
50+
"schema": {
51+
"$ref": "#/components/schemas/TestObject"
52+
}
53+
}
54+
}
55+
}
56+
}
57+
}
58+
}
59+
},
60+
"components": {
61+
"schemas": {
62+
"TestObject": {
63+
"type": "object",
64+
"properties": {
65+
"stringValue": {
66+
"type": "string"
67+
},
68+
"localDateTime": {
69+
"type": "string",
70+
"format": "date-time"
71+
}
72+
}
73+
}
74+
}
75+
}
76+
}

0 commit comments

Comments
 (0)