File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
apidoc-core/src/main/java/com/ztianzeng/apidoc Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,19 @@ public Schema resolve(AnnotatedType annotatedType,
192
192
&& ("T" .equals (field .getType ().getGenericFullyQualifiedName ())
193
193
|| "java.lang.Object" .equals (field .getType ().getGenericFullyQualifiedName ())
194
194
)) {
195
- propSchema .set$ref (constructRef (findName (genericityContentType )));
195
+ if (DocUtils .isList (genericityContentType .getBinaryName ())) {
196
+ aType = new AnnotatedType ()
197
+ .javaClass (genericityContentType )
198
+ .parent (schema )
199
+ .resolveAsRef (annotatedType .isResolveAsRef ())
200
+ .jsonViewAnnotation (annotatedType .getJsonViewAnnotation ())
201
+ .skipSchemaName (true )
202
+ .schemaProperty (true )
203
+ .propertyName (targetClass .getName ());
204
+ propSchema = context .resolve (aType );
205
+ } else {
206
+ propSchema .set$ref (constructRef (findName (genericityContentType )));
207
+ }
196
208
} else if (genericityContentType != null && DocUtils .isList (type .getBinaryName ())) {
197
209
aType = new AnnotatedType ()
198
210
.javaClass (genericityContentType )
You can’t perform that action at this time.
0 commit comments