Skip to content

Commit

Permalink
#814 added definition support for inner definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Bramaten committed Feb 19, 2025
1 parent 2cd8c2b commit c2209dc
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
import java.io.InputStream;
import java.net.URI;
import java.net.URL;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.*;

import com.buschmais.jqassistant.core.shared.annotation.Description;

Expand Down Expand Up @@ -56,6 +53,12 @@ public static ObjectNode generateSchema(Class<?> clazz) {
if (annotation != null) {
return annotation.value();
}
if (method.getType() != null) {
Description innerAnnotation = method.getType().getErasedType().getAnnotation(Description.class);
if (innerAnnotation != null) {
return innerAnnotation.value();
}
}
return null;
});

Expand Down

0 comments on commit c2209dc

Please sign in to comment.