Skip to content

Commit c217cd9

Browse files
committed
Changes report #1773
1 parent e738e3a commit c217cd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/utils/SpringDocDataRestUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ private Schema updateResponseSchema(String className, Schema existingSchema, Com
254254
while (it.hasNext()) {
255255
Entry<String, Schema> entry = it.next();
256256
String propId = entry.getKey();
257-
if (entityInfo.getIgnoredFields().contains(propId))
257+
if (entityInfo.getIgnoredFields().contains(propId) || entityInfo.getAssociationsFields().contains(propId))
258258
it.remove();
259259
else if (EMBEDDED.equals(propId)) {
260260
updateResponseSchemaEmbedded(components, entityInfo, entry);

0 commit comments

Comments
 (0)