File tree Expand file tree Collapse file tree 4 files changed +113
-35
lines changed
springdoc-openapi-data-rest/src
main/java/org/springdoc/data/rest Expand file tree Collapse file tree 4 files changed +113
-35
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ OpenApiCustomiser linksSchemaCustomiser(HalProvider halProvider) {
107
107
Json .mapper ().addMixIn (RepresentationModel .class , RepresentationModelLinksOASMixin .class );
108
108
109
109
ResolvedSchema resolvedLinkSchema = ModelConverters .getInstance ()
110
- .resolveAsResolvedSchema (new AnnotatedType (Link .class ). resolveAsRef ( true ) );
110
+ .resolveAsResolvedSchema (new AnnotatedType (Link .class ));
111
111
112
112
return openApi -> openApi
113
113
.schema ("Link" , resolvedLinkSchema .schema )
Original file line number Diff line number Diff line change 125
125
},
126
126
"components" : {
127
127
"schemas" : {
128
- "CollectionModelEntityModelEmployee" : {
129
- "type" : " object" ,
130
- "properties" : {
131
- "_embedded" : {
132
- "type" : " object" ,
133
- "properties" : {
134
- "employees" : {
135
- "type" : " array" ,
136
- "items" : {
137
- "$ref" : " #/components/schemas/EntityModelEmployee"
138
- }
139
- }
140
- }
141
- },
142
- "_links" : {
143
- "$ref" : " #/components/schemas/Links"
144
- }
145
- }
146
- },
147
128
"Employee" : {
148
129
"type" : " object" ,
149
130
"properties" : {
189
170
"$ref" : " #/components/schemas/Link"
190
171
}
191
172
},
173
+ "CollectionModelEntityModelEmployee" : {
174
+ "type" : " object" ,
175
+ "properties" : {
176
+ "_embedded" : {
177
+ "type" : " object" ,
178
+ "properties" : {
179
+ "employees" : {
180
+ "type" : " array" ,
181
+ "items" : {
182
+ "$ref" : " #/components/schemas/EntityModelEmployee"
183
+ }
184
+ }
185
+ }
186
+ },
187
+ "_links" : {
188
+ "$ref" : " #/components/schemas/Links"
189
+ }
190
+ }
191
+ },
192
192
"Link" : {
193
- "$ref" : " #/components/schemas/Link"
193
+ "type" : " object" ,
194
+ "properties" : {
195
+ "href" : {
196
+ "type" : " string"
197
+ },
198
+ "hreflang" : {
199
+ "type" : " string"
200
+ },
201
+ "title" : {
202
+ "type" : " string"
203
+ },
204
+ "type" : {
205
+ "type" : " string"
206
+ },
207
+ "deprecation" : {
208
+ "type" : " string"
209
+ },
210
+ "profile" : {
211
+ "type" : " string"
212
+ },
213
+ "name" : {
214
+ "type" : " string"
215
+ },
216
+ "templated" : {
217
+ "type" : " boolean"
218
+ }
219
+ }
194
220
}
195
221
}
196
222
}
197
- }
223
+ }
Original file line number Diff line number Diff line change 45
45
},
46
46
"components" : {
47
47
"schemas" : {
48
+ "ExceptionMessage" : {
49
+ "type" : " object" ,
50
+ "properties" : {
51
+ "cause" : {
52
+ "$ref" : " #/components/schemas/ExceptionMessage"
53
+ },
54
+ "message" : {
55
+ "type" : " string"
56
+ }
57
+ }
58
+ },
48
59
"RepositoryConstraintViolationExceptionMessage" : {
49
60
"type" : " object" ,
50
61
"properties" : {
73
84
}
74
85
}
75
86
},
76
- "ExceptionMessage" : {
77
- "type" : " object" ,
78
- "properties" : {
79
- "cause" : {
80
- "$ref" : " #/components/schemas/ExceptionMessage"
81
- },
82
- "message" : {
83
- "type" : " string"
84
- }
85
- }
86
- },
87
87
"Employee" : {
88
88
"type" : " object" ,
89
89
"properties" : {
130
130
}
131
131
},
132
132
"Link" : {
133
- "$ref" : " #/components/schemas/Link"
133
+ "type" : " object" ,
134
+ "properties" : {
135
+ "href" : {
136
+ "type" : " string"
137
+ },
138
+ "hreflang" : {
139
+ "type" : " string"
140
+ },
141
+ "title" : {
142
+ "type" : " string"
143
+ },
144
+ "type" : {
145
+ "type" : " string"
146
+ },
147
+ "deprecation" : {
148
+ "type" : " string"
149
+ },
150
+ "profile" : {
151
+ "type" : " string"
152
+ },
153
+ "name" : {
154
+ "type" : " string"
155
+ },
156
+ "templated" : {
157
+ "type" : " boolean"
158
+ }
159
+ }
134
160
}
135
161
}
136
162
}
Original file line number Diff line number Diff line change 98
98
}
99
99
},
100
100
"Link" : {
101
- "$ref" : " #/components/schemas/Link"
101
+ "type" : " object" ,
102
+ "properties" : {
103
+ "href" : {
104
+ "type" : " string"
105
+ },
106
+ "hreflang" : {
107
+ "type" : " string"
108
+ },
109
+ "title" : {
110
+ "type" : " string"
111
+ },
112
+ "type" : {
113
+ "type" : " string"
114
+ },
115
+ "deprecation" : {
116
+ "type" : " string"
117
+ },
118
+ "profile" : {
119
+ "type" : " string"
120
+ },
121
+ "name" : {
122
+ "type" : " string"
123
+ },
124
+ "templated" : {
125
+ "type" : " boolean"
126
+ }
127
+ }
102
128
}
103
129
}
104
130
}
You can’t perform that action at this time.
0 commit comments