File tree Expand file tree Collapse file tree 3 files changed +34
-22
lines changed
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/converters/models
springdoc-openapi-tests/springdoc-openapi-data-rest-tests/src/test/resources/results Expand file tree Collapse file tree 3 files changed +34
-22
lines changed Original file line number Diff line number Diff line change 24
24
package org .springdoc .core .converters .models ;
25
25
26
26
import com .fasterxml .jackson .annotation .JsonProperty ;
27
+ import io .swagger .v3 .oas .annotations .media .ArraySchema ;
28
+ import io .swagger .v3 .oas .annotations .media .Schema ;
27
29
28
30
/**
29
31
* The type Sort response.
30
32
* @author bnasslahsen
31
33
*/
34
+ @ ArraySchema (arraySchema = @ Schema (implementation = SortObject .class ))
32
35
public class SortObject {
33
36
34
37
/**
Original file line number Diff line number Diff line change 105
105
"format" : " int32"
106
106
},
107
107
"sort" : {
108
- "$ref" : " #/components/schemas/SortObject"
109
- },
110
- "numberOfElements" : {
111
- "type" : " integer" ,
112
- "format" : " int32"
113
- },
114
- "pageable" : {
115
- "$ref" : " #/components/schemas/PageableObject"
108
+ "type" : " array" ,
109
+ "items" : {
110
+ "$ref" : " #/components/schemas/SortObject"
111
+ }
116
112
},
117
113
"first" : {
118
114
"type" : " boolean"
119
115
},
120
116
"last" : {
121
117
"type" : " boolean"
122
118
},
119
+ "pageable" : {
120
+ "$ref" : " #/components/schemas/PageableObject"
121
+ },
122
+ "numberOfElements" : {
123
+ "type" : " integer" ,
124
+ "format" : " int32"
125
+ },
123
126
"empty" : {
124
127
"type" : " boolean"
125
128
}
133
136
"format" : " int64"
134
137
},
135
138
"sort" : {
136
- "$ref" : " #/components/schemas/SortObject"
139
+ "type" : " array" ,
140
+ "items" : {
141
+ "$ref" : " #/components/schemas/SortObject"
142
+ }
143
+ },
144
+ "paged" : {
145
+ "type" : " boolean"
146
+ },
147
+ "unpaged" : {
148
+ "type" : " boolean"
137
149
},
138
150
"pageNumber" : {
139
151
"type" : " integer" ,
142
154
"pageSize" : {
143
155
"type" : " integer" ,
144
156
"format" : " int32"
145
- },
146
- "paged" : {
147
- "type" : " boolean"
148
- },
149
- "unpaged" : {
150
- "type" : " boolean"
151
157
}
152
158
}
153
159
},
Original file line number Diff line number Diff line change 63
63
"format" : " int64"
64
64
},
65
65
"sort" : {
66
- "$ref" : " #/components/schemas/SortObject"
66
+ "type" : " array" ,
67
+ "items" : {
68
+ "$ref" : " #/components/schemas/SortObject"
69
+ }
70
+ },
71
+ "paged" : {
72
+ "type" : " boolean"
73
+ },
74
+ "unpaged" : {
75
+ "type" : " boolean"
67
76
},
68
77
"pageNumber" : {
69
78
"type" : " integer" ,
72
81
"pageSize" : {
73
82
"type" : " integer" ,
74
83
"format" : " int32"
75
- },
76
- "paged" : {
77
- "type" : " boolean"
78
- },
79
- "unpaged" : {
80
- "type" : " boolean"
81
84
}
82
85
}
83
86
},
You can’t perform that action at this time.
0 commit comments