Skip to content

Commit 6f103bb

Browse files
committed
Fixes #1773
1 parent b542da8 commit 6f103bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

springdoc-openapi-data-rest/src/main/java/org/springdoc/data/rest/utils/SpringDocDataRestUtils.java

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

0 commit comments

Comments
 (0)