-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
See: springdoc/springdoc-openapi#1077
I debugged the code and I found the issue at the following place:
swagger-core/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java
Lines 371 to 379 in 438230d
AnnotatedType aType = new AnnotatedType() | |
.type(jsonValueType) | |
.parent(annotatedType.getParent()) | |
.name(annotatedType.getName()) | |
.schemaProperty(annotatedType.isSchemaProperty()) | |
.resolveAsRef(annotatedType.isResolveAsRef()) | |
.jsonViewAnnotation(annotatedType.getJsonViewAnnotation()) | |
.propertyName(annotatedType.getPropertyName()) | |
.skipOverride(true); |
Unlike in other places, at this point the .ctxAnnotations(schemaAnnotations)
method is not called which results in the loss of data coming from @Schema
annotation.
Metadata
Metadata
Assignees
Labels
No labels