Skip to content

Commit 7ec945f

Browse files
committed
upgrade swagger-core version to 2.2.2
upgrade classgraph version to 4.8.149
1 parent 22360a3 commit 7ec945f

File tree

5 files changed

+224
-54
lines changed

5 files changed

+224
-54
lines changed

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@
6868
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
6969
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
7070
<nexus-staging-maven-plugin>1.6.8</nexus-staging-maven-plugin>
71-
<swagger-api.version>2.2.1</swagger-api.version>
71+
<swagger-api.version>2.2.2</swagger-api.version>
7272
<swagger-ui.version>4.11.1</swagger-ui.version>
7373
<spring-security-oauth2.version>2.3.8.RELEASE</spring-security-oauth2.version>
74-
<classgraph.version>4.8.147</classgraph.version>
74+
<classgraph.version>4.8.149</classgraph.version>
7575
<webjars-locator-core.version>0.50</webjars-locator-core.version>
7676
<gmavenplus-plugin.version>1.8.1</gmavenplus-plugin.version>
7777
<jaxb-impl.version>2.1</jaxb-impl.version>

springdoc-openapi-webmvc-core/src/test/resources/results/3.1.0/app1.json

+83-21
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
"in": "path",
2929
"description": "E-Mail address to lookup for",
3030
"required": true,
31-
"schema": {}
31+
"schema": {
32+
"type": "string"
33+
}
3234
}
3335
],
3436
"responses": {
@@ -76,21 +78,27 @@
7678
"in": "path",
7779
"description": "E-Mail",
7880
"required": true,
79-
"schema": {}
81+
"schema": {
82+
"type": "string"
83+
}
8084
},
8185
{
8286
"name": "firstName",
8387
"in": "query",
8488
"description": "First Name",
8589
"required": true,
86-
"schema": {}
90+
"schema": {
91+
"type": "string"
92+
}
8793
},
8894
{
8995
"name": "lastName",
9096
"in": "query",
9197
"description": "Last Name",
9298
"required": true,
93-
"schema": {}
99+
"schema": {
100+
"type": "string"
101+
}
94102
}
95103
],
96104
"responses": {
@@ -109,7 +117,9 @@
109117
"headers": {
110118
"Location": {
111119
"style": "simple",
112-
"schema": {}
120+
"schema": {
121+
"type": "string"
122+
}
113123
}
114124
},
115125
"content": {
@@ -124,7 +134,9 @@
124134
"description": "Person with such e-mail already exists",
125135
"content": {
126136
"application/json": {
127-
"schema": {}
137+
"schema": {
138+
"type": "string"
139+
}
128140
}
129141
}
130142
}
@@ -142,7 +154,9 @@
142154
"in": "path",
143155
"description": "E-Mail address to lookup for",
144156
"required": true,
145-
"schema": {}
157+
"schema": {
158+
"type": "string"
159+
}
146160
}
147161
],
148162
"responses": {
@@ -160,15 +174,19 @@
160174
"description": "Person has been deleted",
161175
"content": {
162176
"application/json": {
163-
"schema": {}
177+
"schema": {
178+
"type": "string"
179+
}
164180
}
165181
}
166182
},
167183
"404": {
168184
"description": "Person with such e-mail doesn't exists",
169185
"content": {
170186
"application/json": {
171-
"schema": {}
187+
"schema": {
188+
"type": "string"
189+
}
172190
}
173191
}
174192
}
@@ -187,6 +205,7 @@
187205
"in": "query",
188206
"required": true,
189207
"schema": {
208+
"type": "string",
190209
"maxLength": 6,
191210
"minLength": 4
192211
}
@@ -196,6 +215,7 @@
196215
"in": "query",
197216
"required": true,
198217
"schema": {
218+
"type": "integer",
199219
"format": "int32",
200220
"maximum": 6,
201221
"minimum": 4
@@ -216,6 +236,7 @@
216236
"required": false,
217237
"explode": false,
218238
"schema": {
239+
"type": "array",
219240
"items": {}
220241
}
221242
}
@@ -236,6 +257,7 @@
236257
"content": {
237258
"application/json": {
238259
"schema": {
260+
"type": "array",
239261
"items": {
240262
"$ref": "#/components/schemas/ItemDTO"
241263
}
@@ -276,6 +298,7 @@
276298
"content": {
277299
"application/json": {
278300
"schema": {
301+
"type": "string",
279302
"format": "uri"
280303
}
281304
}
@@ -299,14 +322,17 @@
299322
"in": "query",
300323
"description": "pass an optional search string for looking up inventory",
301324
"required": false,
302-
"schema": {}
325+
"schema": {
326+
"type": "string"
327+
}
303328
},
304329
{
305330
"name": "skip",
306331
"in": "query",
307332
"description": "number of records to skip for pagination",
308333
"required": true,
309334
"schema": {
335+
"type": "integer",
310336
"format": "int32",
311337
"minimum": 0
312338
}
@@ -317,6 +343,7 @@
317343
"description": "maximum number of records to return",
318344
"required": true,
319345
"schema": {
346+
"type": "integer",
320347
"format": "int32",
321348
"maximum": 50,
322349
"minimum": 0
@@ -339,6 +366,7 @@
339366
"content": {
340367
"application/json": {
341368
"schema": {
369+
"type": "array",
342370
"items": {
343371
"$ref": "#/components/schemas/InventoryItem"
344372
}
@@ -351,6 +379,7 @@
351379
"content": {
352380
"application/json": {
353381
"schema": {
382+
"type": "array",
354383
"items": {
355384
"$ref": "#/components/schemas/InventoryItem"
356385
}
@@ -425,6 +454,7 @@
425454
"content": {
426455
"application/json": {
427456
"schema": {
457+
"type": "array",
428458
"items": {
429459
"$ref": "#/components/schemas/PersonDTO"
430460
}
@@ -446,13 +476,17 @@
446476
"name": "numTelco",
447477
"in": "path",
448478
"required": true,
449-
"schema": {}
479+
"schema": {
480+
"type": "string"
481+
}
450482
},
451483
{
452484
"name": "adresse",
453485
"in": "query",
454486
"required": true,
455-
"schema": {}
487+
"schema": {
488+
"type": "string"
489+
}
456490
}
457491
],
458492
"responses": {
@@ -470,7 +504,9 @@
470504
"description": "I'm a teapot",
471505
"content": {
472506
"application/json": {
473-
"schema": {}
507+
"schema": {
508+
"type": "string"
509+
}
474510
}
475511
}
476512
}
@@ -482,24 +518,38 @@
482518
"schemas": {
483519
"ErrorMessage": {
484520
"properties": {
485-
"id": {},
486-
"message": {}
521+
"id": {
522+
"type": "string"
523+
},
524+
"message": {
525+
"type": "string"
526+
}
487527
}
488528
},
489529
"PersonDTO": {
490530
"properties": {
491-
"email": {},
492-
"firstName": {},
493-
"lastName": {}
531+
"email": {
532+
"type": "string"
533+
},
534+
"firstName": {
535+
"type": "string"
536+
},
537+
"lastName": {
538+
"type": "string"
539+
}
494540
}
495541
},
496542
"ItemLightDTO": {
497543
"properties": {
498-
"description": {},
544+
"description": {
545+
"type": "string"
546+
},
499547
"price": {
548+
"type": "integer",
500549
"format": "int32"
501550
},
502551
"deprecatedPrice": {
552+
"type": "integer",
503553
"format": "int32",
504554
"deprecated": true
505555
}
@@ -508,13 +558,16 @@
508558
"InventoryItem": {
509559
"properties": {
510560
"id": {
561+
"type": "string",
511562
"format": "uuid",
512563
"example": "d290f1ee-6c54-4b01-90e6-d701748f0851"
513564
},
514565
"name": {
566+
"type": "string",
515567
"example": "Widget Adapter"
516568
},
517569
"releaseDate": {
570+
"type": "string",
518571
"example": "2016-08-29T09:12:33.001Z"
519572
},
520573
"manufacturer": {
@@ -531,12 +584,15 @@
531584
"Manufacturer": {
532585
"properties": {
533586
"name": {
587+
"type": "string",
534588
"example": "ACME Corporation"
535589
},
536590
"homePage": {
591+
"type": "string",
537592
"example": "https://www.acme-corp.com"
538593
},
539594
"phone": {
595+
"type": "string",
540596
"example": "408-867-5309"
541597
}
542598
},
@@ -546,12 +602,18 @@
546602
},
547603
"ItemDTO": {
548604
"properties": {
549-
"itemID": {},
550-
"description": {},
605+
"itemID": {
606+
"type": "string"
607+
},
608+
"description": {
609+
"type": "string"
610+
},
551611
"price": {
612+
"type": "integer",
552613
"format": "int32"
553614
},
554615
"deprecatedPrice": {
616+
"type": "integer",
555617
"format": "int32",
556618
"deprecated": true
557619
}

0 commit comments

Comments
 (0)