File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/v31 Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,10 @@ public void testAnnotatedArray() {
30
30
SerializationMatchers .assertEqualsToYaml31 (model , "type: array\n " +
31
31
"contains:\n " +
32
32
" type: string\n " +
33
+ "description: arraydescription\n " +
33
34
"items:\n " +
34
35
" type: string\n " +
36
+ " description: itemdescription\n " +
35
37
"maxContains: 10\n " +
36
38
"minContains: 1\n " +
37
39
"prefixItems:\n " +
@@ -115,8 +117,10 @@ public void testOAS31Fields() {
115
117
" type: array\n " +
116
118
" contains:\n " +
117
119
" type: string\n " +
120
+ " description: itemdescription\n " +
118
121
" items:\n " +
119
122
" type: string\n " +
123
+ " description: itemdescription\n " +
120
124
" maxContains: 10\n " +
121
125
" minContains: 1\n " +
122
126
" prefixItems:\n " +
Original file line number Diff line number Diff line change 13
13
types = { "number" }
14
14
),
15
15
schema = @ Schema (
16
- types = { "string" }
16
+ types = { "string" },
17
+ description = "itemdescription"
17
18
),
19
+ arraySchema = @ Schema (description = "arraydescription" ),
18
20
prefixItems = {
19
21
@ Schema (
20
22
types = { "string" }
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ public class ModelWithOAS31Stuff {
23
23
private Client client ;
24
24
25
25
@ ArraySchema (
26
+ schema = @ Schema (
27
+ types = { "string" },
28
+ description = "itemdescription"
29
+ ),
30
+ arraySchema = @ Schema (description = "arraydescription" ),
26
31
maxContains = 10 ,
27
32
minContains = 1 ,
28
33
contains = @ Schema (
You can’t perform that action at this time.
0 commit comments