You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
the javadoc of the Bar field should be set in the api-docs and hence will be displayed by swagger-ui
Screenshots
This is how it looks like
This is how it should be (generated with the proposed solution)
Solution proposal
in org.springdoc.openapi.javadoc.JavadocPropertyCustomizer.setJavadocDescription(Class<?>, List, Schema)
the method should be called recursively for all types of fields annotated with @JsonUnwrapped
yes I would like to, but haven't done it on github yet, don't see the opportunity to create a branch, do you have to assign me?
(have also written a test already)
ok i forked it
To Reproduce
download and unzip the sample project
demo-springdoc-javadoc.zip
run with
mvn spring-boot:run
open
http://localhost:8080/swagger-ui/index.html
select Schema
Expected behavior
the javadoc of the Bar field should be set in the api-docs and hence will be displayed by swagger-ui
Screenshots


This is how it looks like
This is how it should be (generated with the proposed solution)
Solution proposal
in org.springdoc.openapi.javadoc.JavadocPropertyCustomizer.setJavadocDescription(Class<?>, List, Schema)
the method should be called recursively for all types of fields annotated with @JsonUnwrapped
fields.stream().filter(f -> f.isAnnotationPresent(JsonUnwrapped.class)) .forEach(f -> setJavadocDescription(f.getType(), FieldUtils.getAllFieldsList(f.getType()), existingSchema));
The text was updated successfully, but these errors were encountered: