Skip to content

Commit

Permalink
Spring Data REST fails when setting version to openapi_3_1. Fixes #2516
Browse files Browse the repository at this point in the history
  • Loading branch information
bnasslahsen committed Mar 5, 2024
1 parent 65e9a3c commit 0803dbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ else if (EMBEDDED.equals(propId)) {
*/
private void updateResponseSchemaEmbedded(Components components, EntityInfo entityInfo, Entry<String, Schema> entry, boolean openapi31) {
String entityClassName = linkRelationProvider.getCollectionResourceRelFor(entityInfo.getDomainType()).value();
ArraySchema arraySchema = (ArraySchema) ((ObjectSchema) entry.getValue()).getProperties().get(entityClassName);
ArraySchema arraySchema = (ArraySchema) entry.getValue().getProperties().get(entityClassName);
if (arraySchema != null) {
Schema itemsSchema = arraySchema.getItems();
Set<String> entitiesNames = entityInoMap.keySet();
Expand Down

0 comments on commit 0803dbc

Please sign in to comment.